shishantpandeyAug 5, 20221 min readEVEN OR ODD IN C Updated: Aug 22, 2022#include <stdio.h> int main() { int a = 24; int b = 0; printf("entre any digit\n"); scanf("%d", &a); if (a % 2 == 0) { printf("it is an even number "); } else { printf("it is an odd number"); } return 0; }MY PROJECTS
#include <stdio.h> int main() { int a = 24; int b = 0; printf("entre any digit\n"); scanf("%d", &a); if (a % 2 == 0) { printf("it is an even number "); } else { printf("it is an odd number"); } return 0; }MY PROJECTS
Comments