i need to know the code for a program in 'C'(not in C++) which gives a diamond shaped structure composed of * (asterixes).the program has to be done using the 'for' loop.
C programming diamond design?
Well, the best part of programming is figuring stuff out for yourself, but I can try and give you a hint:
you need some nested 'for' loops...and the variables, like 'i'
ex. for(i=0;i%26lt;whatever;i++)
are essential to your program outputting the correct number of asterisks. the printf() statement(s) should be included inside of your loops...and i'll leave the coding up to you =D good luck!
Reply:school assignment
do it urself ; thats the only way u can learn
other users plz dont help
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment