By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,334 Members | 2,776 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,334 IT Pros & Developers. It's quick & easy.

I am trying to run a program on C and I'm not sure how to start the for loops.

P: 2
The output should look like this:

This program will print a character diamond.
Enter a character: 6
Enter an odd number at least 1 but less than 40: 15
6
67876
6789:9876
6789:;<;:9876
6789:;<=>=<;:9876
6789:;<=>?@?>=<;:9876
6789:;<=>?@ABA@?>=<;:9876
6789:;<=>?@ABCDCBA@?>=<;:9876
Sep 28 '16 #1
Share this Question
Share on Google+
3 Replies


P: 2
The output is suppose to look more like a pyramid and not a right triangle.
Sep 28 '16 #2

weaknessforcats
Expert Mod 5K+
P: 9,197
Draw it again. You can use periods as spaces so I can see what you want to do.
Sep 28 '16 #3

Expert 100+
P: 2,398
You should draw the desired output inside Code tags so that Courier font is used (all characters are the same width).
Sep 28 '16 #4

Post your reply

Sign in to post your reply or Sign up for a free account.