-Write C program to find even and odd number using macro
-Write C program to find even and odd number using macro #include<stdio.h> #define number(n)((n%2==0)?1:0) int main() { int num; printf("enter any number"); scanf("%d",&num); if(number(num)) printf("number is even"); else printf("number is odd"); return 0; } ***************************Output*********************** amr@amrj-virtual-machine:~$ gccevenodd.c amr@samr-virtual-machine:~$ ./a.out enter any number 2 number is evensmj@amr-virtual-machine:~$
best latest technology
ReplyDeletebest latest technology
best latest technology
best latest technology
best latest technology
best latest technology
best latest technology
best latest technology
best latest technology
best latest technology
Bollywood4u
ReplyDeleteMovie4u
Thanks For posting this. KEEP UPDATING
ReplyDeleteFancy Text Generator
Nice Post 12 Minute Affiliate System
ReplyDelete