Generation

code to explanationWed, 07 Dec 2022

#include <stdio.h> int main() { int n,*num; scanf("%d",&n); num=&n; if(n%2==0) printf("%d is even .\n",*num); else printf("%d is odd .\n",*num); return 0; }

#include <stdio.h> int main() { int n,*num; scanf("%d",&n); num=&n; if(n%2==0) printf("%d is even .\n",*num); else printf("%d is odd .\n",*num); return 0; }

Questions about programming?Chat with your personal AI assistant