I am trying to copy and user imputed string multiple times using c code. Im new to coding.
char toCopy[81];
int numCopies;
int i;
printf("Enter string: ");
scanf("%s",toCopy);
printf("Enter number of copies: ");
scanf("%r", numCopies);
printf("%s * %r")
puts("End");
Aucun commentaire:
Enregistrer un commentaire