September 17th, 2013, 09:40 PM
A C exercise: Urgent!
hey i am a beginner and really stuck in assignment:
Display the alphabet on the screen, one letter on each line. Next to each letter, each line should also contain an average (obtained through the use of a running total) of all letters displayed in the left-hand column up to that point.
We can only use the running total and a total of 3 Printf statement in the whole program.
The output of program is suppose to look like this :
This is what i have coded so far but i am just confused
char columm1 = 0;
int i = 0
int total = 0
for (i = 0; i < 27; i++)
printf("%c, %c /n", columm1, total);
Please help me with what i have done wrong
September 17th, 2013, 10:47 PM