0

How to write a code that asks for a persons age and displays it? Is it this?? Am new to C btw

printf("\nhow old are you? \n"); Scanf("%d",&age);

30th Apr 2019, 12:53 PM
Zabu
2 ответов
+ 2
int age; printf("\nhow old are you? \n"); scanf("%d",&age); printf("You are %d", age); Nice try btw!
30th Apr 2019, 1:09 PM
Seniru
Seniru - avatar
+ 1
Tks alot u saved me
30th Apr 2019, 1:23 PM
Zabu