Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (anonymous):

Is it possible to print a rectangle in c without using grahics.h?

OpenStudy (anonymous):

not a good answer, but though u can try this for fun: int t = 8,i,j; for(i=0;i<8;i++) printf("_"); printf("\n"); for(i=0;i<8;i++) { printf("|"); for(j=1;j<7;j++) printf(" "); printf("|\n"); } for(i=0;i<8;i++) printf("-"); printf("\n");

OpenStudy (a_clan):

yes. Maybe not that neat though.

OpenStudy (anonymous):

Thank you as83! With your help I ended up with this: int i; for(i=0;i<8;i++) printf("_"); printf("\n"); for(i=0;i<8;i++) { printf("|"); printf("\t"); printf("|\n"); } for(i=0;i<8;i++) printf("-"); I was having a problem printing the two vertical sides of the rectangle!

OpenStudy (anonymous):

welcome :)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
2 days ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
2 days ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!