How to repeat a letter in a word n times??
for example:
input: 10
Woooooooooow!
This is my code
#include <stdio.h>
int main() {
int entrance = 1;
printf("Entry by you: ");
scanf("%d", &entrance);
printf("W");
for (int i = 1; i <= entrance; i++){
printf("%c",'o');
}
printf("w!\n");
return 0;
}
>Solution :
If you know how to do that you should use strings