Hello,
I have to use a width modifier in the following program.
#include <stdio.h>
main ()
{
printf("%10s%10s%10s%10s%10s\n",
"Parrots","Rams", "Kings", "Titans", "Chargers");
printf("%10d%10d%10d%10d%10d\n", 3,5,2,1,0);
printf("%10d%10d%10d%10d%10d\n", 2,5,1,0,1);
printf("%10d%10d%10d%10d%10d\n", 2,6,4,3,0);
return;
}
1.I get an error at the first printf(): String crosses a line?
2.I cannot get the teams in one column, with the scores
beneath them. What am I doing wrong?
Thanks,
Adock.