Write a C Program to find whether the entered number is even, odd. by dipak · December 10, 2023 Write a C Program to find whether the entered number is even, odd . #include<stdio.h> #include<conio.h> void main() { int a; clrscr(); printf(“Enter a number:”); scanf(“%d”,&a); printf(“%d”,a%2==0); // 1->the no. is even, 0->odd getch(); } Output:
0 C Program to find the sum of digits of the number entered. December 2, 2023 by dipak · Published December 2, 2023