a place where all ur worries are gone and scream all crap u wan while learning something new every day! c language to calculus, welcome to MY HOLY WORLD! :-)

Wednesday, March 25, 2009

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