0
What's wrong in the project?
#include <stdio.h> #include <conio.h> Void main () { Int a; Printf ("\n enter your no"); Scanf ("% d", &a); If (a% 2==0) { Printf ("even no % d", a); } else { Printf ("odd no % d", a); } getch (); }
1 ответ
+ 1
it should be
printf("\n enter your no");
scanf("%d",&a);
• p, v and s are small, not caps.
• there should not be a gap between % and d.