help needed with loops pls x

This is a discussion on help needed with loops pls x within the C Programming forums, part of the General Programming Boards category; Hi
I need to write a program that will print a diamond shape using astericks, i can only use printf ...

help needed with loops pls x

Hi

I need to write a program that will print a diamond shape using astericks, i can only use printf for one character so i will have to use loops. The user needs to be able to input the amount of rows they would like. and then the program print the diamond with that amount of rows.

I made this program below to just print a diamond with 9 rows for another piece of work. Is there any way i can just alter it so that i can input the amount of rows without having to change the code to much?