Posts

Showing posts from 2016

Nursing

Image
Nursing Introduction Nursing is a profession within the health care sector focused on care of individuals, families and communities so they may attain, maintain, or recover optimal health and quality of life .Nurses may be differentiated from other health care providers by their approach to patient care, training and scope of practise. There are many definition of nursing and one of them is as below; "Nursing is protection  ,promotion, and optimization of health and abilities; prevention of illness and injury ;alleviation of suffering through the diagnosis and treatment of human response ;and advocacy in health care for individuals, families, communities and population."                                                   ...

c program to count the number of odd and even digits in an integer

http://stackoverflow.com/a/38181488/6393408 #include <stdio.h> #include <conio.h> void main () { int nodd , neven , num , digit ; clrscr (); printf ( "Count number of odd and even digits in a given integer number " ); scanf ( "%d" ,& num ); nodd = neven = 0 ; /* count of odd and even digits */ while ( num > 0 ) { digit = num % 10 ; /* separate LS digit from number */ if ( digit % 2 == 1 ) nodd ++; else neven ++; num /= 10 ; /* remove LS digit from num */ } printf ( "Odd digits : %d Even digits: %d\n" , nodd , neven ); getch ();