Just started playing with C programming and trying to test out this code. I have a few questions.
printf("Enter loop repeat number(rows): ");
for(r=1; num>=r; r++)
for(sp=num-r; sp>=1; sp--)
for(c=1; c<=r; c++)
Enter loop repeat number(rows):: 5
How can I restrict so that someone can't enter more than 10. Also when they execute the program, I would like for it to repeat all over asking them to enter number of row. Currently, after the inital enter of number and execute, if I hit "Enter" it exits out. I want it to ask again "Enter Loop repeat number(Rows):" instead of exiting the program.