Program to Check a whether a Number is Odd or Even using Switch Case

C program to display the odd digits present in integer

Program to Check a whether a Number is Odd or Even using Switch Case #include<stdio.h> int main(){ int number,remainder; clrscr(); printf(” Enter an integer number: “); scanf(“%d”,&number); remainder = abs(number) % 2; switch(remainder){ case 0 : printf(“\n %d is an even number.”,number); break; case 1 : printf(“\n %d is an odd number.”,number); break; } getch(); … Read more

c program example Passing values between functions

c program example function and value pass to function 1

c program example Passing values between functions c program example function and value pass to function 1   main( ) { int i = 45, c ; c = check ( i ) ; printf ( “\n%d”, c ) ; } check ( int ch ) { if ( ch >= 45 ) return ( … Read more