Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // strcpy in C (C) 2017 by Adm1n_0v3rride
- #include <stdio.h>
- #include <string.h>
- int main() {
- char message[20];
- int count,i;
- strcpy(message, "Hello, world!");
- printf("How many times do you want your message to be looped?: ");
- scanf("%d", &count);
- for(i = 0; i < count; i++) {
- printf("%3d - %s\n", i, message);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement