i am beginner so i do not understand what is the error here, when i enter age it only print the else statement and when i copy the same type of the program then it works fine
#include <stdio.h>
int main()
{
int age;
printf("enter the age\n");
scanf("%d", age);
if (age >= 90)
{
printf("yes you are old man\n");
}
else
{
printf("not the old man\n");
}
return 0;
}
OUTPUT:
enter the age
88
not the old man
enter the age
99
not the old man
Aucun commentaire:
Enregistrer un commentaire