top of page

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




 
 
 

Comments


Post: Blog2_Post

6204596395

  • Instagram
  • LinkedIn

©2022 by shishantPandey. Proudly created with Wix.com

bottom of page