display 10 consecutive lines...........
Could anyone help me with this book exercise:
"Display the user's name input from the keyboard in 10 consecutive lines, using the variable once..."
I don't get it,..
I have an idea that I'll type the name " John Lennon "
and then it'll print the whole name down in 10 lines...
please, give me your ideas... hints or perhaps
a simple source code...
thanks
Re: display 10 consecutive lines...........
Quote:
Originally posted by imbecile in C
"Display the user's name input from the keyboard in 10 consecutive lines, using the variable once..."
Sounds like another one of the strange questions, here's my effort for the day (note the use of the variable once):
Code:
char once[BUFSIZ];
if (fgets(once, sizeof once, stdin))
{
/* Now loop to print 10 times */
}
:p