- #1
jaydnul
- 558
- 15
All i have to do is write a program that will output my initials (JBL) in block letters.
This is what i have done:
Now this is wrong of course. When i execute, it will print the top line with the correct number of spaces, but after the first LLL it just goes wack. I assume it is because i am not telling it when to start a new line, right? If so, how do i do that? Also, could i just use 1 printf statement instead of 6?
Thanks
This is what i have done:
Code:
#include <stdio.h>
void main()
{
printf(" JJJJJJ BBBBBBBB LLL");
printf(" JJ BB BB LLL");
printf(" JJ BBBBBBB LLL");
printf(" JJ BB BB LLL");
printf(" JJ JJ BB BB LLLLLLLL");
printf(" JJJJJ BBBBBBBB LLLLLLLL");
}
Now this is wrong of course. When i execute, it will print the top line with the correct number of spaces, but after the first LLL it just goes wack. I assume it is because i am not telling it when to start a new line, right? If so, how do i do that? Also, could i just use 1 printf statement instead of 6?
Thanks
Last edited by a moderator: