part 2
now that u noe how to use the printf
now try using the scanf function
#include
int main()
{
printf("input age"); /*first text*/
scanf("%d,age); /*prompts user to input age*/
/***********divider*****************************************/
printf("/n Yur %d years old",age);
return(0)
}
compile and execute and the input should be
input age
10000
Yur 10000 years old.
volia
a new program!
please leave comments in the c box
lol=.=
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home