top of page
shishantpandey

EVEN 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; }




14 views0 comments

Recent Posts

See All

Comments


Post: Blog2_Post
bottom of page