How to print specific amount of characters per line
Hey, so I've just started programming in C and was wondering if you guys could enlighten me on how to print a specific amount of characters per line. In this program I want to display all the capital letters in ASCII, but I want it to be 10 letters per line; Here is what I have so far:
Code:
#include <stdio.h>
int main()
{
int i;
while ( i=65; i<=90; i++ )
{
for (i= 0; i < 10; i++)
{
printf("\n");
}{
printf("%c", i);
}
return 0;
}}
Any feedback is appreciated!