0
How can i print my name 5 times??
By input my name and then print five times .and by not using " " this method.
5 odpowiedzi
+ 8
#include <iostream>
int main() {
for (int i = 0; i < 5; i++) {
std::cout << "Your name" << std::endl;
}
return 0;
}
+ 6
@Fenil shah , Your code will print "your name" six times. Instead put i<5; 👻
0
thanz
- 1
#inlcude<iostream.h>
void main(){
for(int i=0;i<5;i++)
cout<<"your name \n";
}