0

Can someone tell me how to make a sentence copy itself 46 times in c++? But in a small program

22nd Aug 2020, 9:32 AM
RAGE TNT EXPLODER
RAGE TNT EXPLODER - avatar
6 Answers
+ 5
What did you mean by "copy itself"? did you mean to print some sentence multiple times? cause you can use any loop for that ...
22nd Aug 2020, 9:37 AM
Ipang
+ 4
you can use for loop or while loop or do while loop.
22nd Aug 2020, 9:42 AM
The future is now thanks to science
The future is now thanks to science - avatar
+ 4
Use loop for repeating any task again and again like this for(int a=0;a<46; a++) cout<<"this is for trial"; You can use while and do while also.
22nd Aug 2020, 10:22 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
Thanks for the help
22nd Aug 2020, 9:45 AM
RAGE TNT EXPLODER
RAGE TNT EXPLODER - avatar
+ 1
Yes to make a sentence loop itself 46 times
22nd Aug 2020, 9:38 AM
RAGE TNT EXPLODER
RAGE TNT EXPLODER - avatar