Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- int main(int argc,char *argv[])
- {
- //printf("%s\n\n",argv[1]);
- int a=atoi(argv[2]);
- int size = strlen(argv[1]);
- char wynik[100];
- //printf("wynik = %s",wynik);
- for (int i=0;i<a;i++)
- {
- strcat(wynik,argv[1]);
- strcat(wynik,"\n");
- }
- printf("%s",wynik);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement