Write a C program to check a number is even or odd.
#include<stdio.h> #include<conio.h> main() { int n; printf("\n enter any number"); scanf("%d",&n); if(n%2==0) printf("\n the number is even"); else printf("\n the number is odd"); getch(); }
Output:
Write a C program to find minimum among three numbers.
Explain left factoring with suitable example.
Write a C program to find a number is AMSTRONG or NOT.
Write a C program to find the factorial of any number.