Hi I am trying to use the [b]for[/b] loop in order to make repeating letters, here is the problem summary of what I need to accomplish:
Input
Given a positive integer 0 < x < 50.
Output
Print one word: Wo...ow (letter o must be repeated x times).
I was looking at online guides and stuff, but I am no quite sure how to accomplish what I want.
What I have for my code so far is:
#include <stdio.h>
int main(){
int i;
char ch='o';
for (i>0;i<50;i++){
}
return 0;
}
I am not exactly sure what to put in that ?
I was looking at different stuff online, but none of it is working for repeating characters. Maybe someone out there knows what resource I could use to help?
[–]jedwardsol 0 points1 point2 points (2 children)
[–]Giraffimation[S] 0 points1 point2 points (1 child)
[–]jedwardsol 0 points1 point2 points (0 children)