#include <stdio.h>
#include <string.h>
int main(){
char str[50];
int i,num;
printf("Please enter a string: ");
gets(str);
printf("Please enter the number of times you want to display: ");
scanf("%d",&num);
for (i=0;i<num;i++)
puts(str);
return 0;
}
Comments