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

15th Nov 2016, 6:17 PM
Tuhin Chowdhury
Tuhin Chowdhury - avatar
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.
15th Nov 2016, 6:35 PM
Nagendra Prajwal
Nagendra Prajwal - avatar