+ 1
How to print string n times?
I want to print the string repeatedly n times with simple c language code. Like print string "SK" 4 times SKSKSKSK.
7 Réponses
+ 2
This thing is covered already in your C course which you have already completed 100%.
You need to revise them once again to be able to solve this.
your problem seems to have logic with repetition so you need something like a loop which loop I don't know.
+ 2
yeah why know, but have you tried solving yourself?
show your attempt and we can try to make it work together.
+ 2
Yeah im trying on it..... Thnx bdw... 😊
+ 2
thanks yourself because you are challenging your brain and this is what will help you alot in your long run.
But if you have doubt please post it.
Happy Coding!
+ 1
Yes ill search..... But value of n given by user and we have to print that string n times so it will happen... And i have tried for loop it will not show output using for loop it shows problem
+ 1
Simply use * operator on string you will find your ans
0
"SK"*4