Hello,
I have a little over 3 days of C experience so bear with me!
I understand how to print 1-100:
And also A-Z:Code:for (i = 1; i < 100; i++) printf("%d\n", i);
My question is: How can I print a single character for x times?Code:for (ch = 'A'; ch <= 'Z'; ch++) printf("%c\n", ch);
For example the letter A, 100 times?:
A
A
A
A
A
...
I tried:
But it gives an infinite loop! How can I tell it to only print 100 times or any other ammount?Code:for (ch = 'A'; ch = 'A'; ch++) printf("%c\n", ch);