donmike25 icon

tutorial 8(3)

donmike25 | PRO | 08/24/13 04:04:25 AM UTC | 0 ⭐ | 213 👁️ | Never ⏰ | []
C |

270 B

|

None

|

0 👍

/

0 👎

#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