#include <stdio.h> int main() { int a; printf("Enter an number to check even or odd:-\n "); scanf("%d", &a); if(a % 2 == 0) printf("%d is even.", a); else printf("%d is odd.", a); return 0; }
#include <stdio.h> int main() { int a, b; printf("Enter the number you want multiplication of :-\n"); scanf("%d",&a); for(b=1;b<=10;b++){ printf("%d*%d = %d\n",a,b,a*b); } return 0; }