Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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;
- }
Advertisement
Add Comment
Please, Sign In to add comment