|
CS256 - Fundamentals of Structured Programming
| Displaying exercises/e6/files/p1.c
#include <stdio.h>
/**
* Print "Hello, world!" preceded by a number that is right aligned to three
* spaces and ranges from 1 to 100 in steps of 9. You must use a loop for this
* problem. The number should be right aligned to 3 columns. To right align
* numbers, use %#d in your printf, where # is the number of columns you want.
* Example output:
* 1 Hello, world!
* 10 Hello, world!
* 19 Hello, world!
* 28 Hello, world!
* ...
* 100 Hello, world!
*/
int main(void)
{
return 0;
}
|