0

How can i print my name 5 times??

By input my name and then print five times .and by not using " " this method.

16th Feb 2017, 4:46 AM
Yeshi Tsering
5 odpowiedzi
+ 8
#include <iostream> int main() { for (int i = 0; i < 5; i++) { std::cout << "Your name" << std::endl; } return 0; }
16th Feb 2017, 4:52 AM
Kawaii
Kawaii - avatar
+ 6
@Fenil shah , Your code will print "your name" six times. Instead put i<5; 👻
16th Feb 2017, 5:25 AM
Mr.Robot
Mr.Robot - avatar
0
thanz
16th Feb 2017, 4:53 AM
Yeshi Tsering
- 1
#inlcude<iostream.h> void main(){ for(int i=0;i<5;i++) cout<<"your name \n"; }
16th Feb 2017, 5:06 AM
Fenil Shah
Fenil Shah - avatar