C implementation without the use of functions
#include <stdio.h>
main()
{
char c;
int i, vol;
while( scanf(" %c", &c) != EOF) {
do {
printf("%c", c);
scanf("%c", &c);
} while( c != '\n');
printf("\n");
scanf("%d", &vol);
for(i = 1; i <= vol; i++)
printf("*");
printf("\n\n");
}
}
This is program
pg108.c
.
Previous slide
Next slide
Back to first slide
View graphic version