Saved Bookmarks
| 1. |
#include int main(){int a;printf ("enter your ID number");scanf ("&a");if (a=2005){printf ("You are sirgene Irengbam");}else{printf ("You are not registered, SORRY");}return 0;}it prints similar even if I change the number. what is my mistake there so kindly change if I commit thanks |
|
Answer» ong>Answer: the syntax is SCANF("%d", &a) ; |
|