- 8

How to print "hello world" 10 times using c++

16th Sep 2016, 12:15 PM
pritam naik
pritam naik - avatar
12 Respostas
+ 2
#include <iostream> using namespace std; int main() { string name; cout << "Enter ur name \n"; cin >> name; for (int counter = 0; counter < 10; counter++) { cout << name << endl; } }
18th May 2020, 10:01 PM
Ű­ŰłÙŠÙ† Ű”Ű§Ù„Ű­ Ű§Ù„Ù…Ù†Ű”ÙˆŰ±ÙŠ
Ű­ŰłÙŠÙ† Ű”Ű§Ù„Ű­ Ű§Ù„Ù…Ù†Ű”ÙˆŰ±ÙŠ - avatar
0
Thanks
16th Sep 2016, 12:26 PM
pritam naik
pritam naik - avatar
0
Thanks
20th Jun 2018, 2:46 AM
DK Khan
DK Khan - avatar
0
thanks
7th Dec 2020, 8:28 PM
Mohammed Dhaifullah Kamel
Mohammed Dhaifullah Kamel - avatar
0
how to write program that enter 15 number and print the product ?
7th Dec 2020, 8:52 PM
Mohammed Dhaifullah Kamel
Mohammed Dhaifullah Kamel - avatar
0
#include<iostream> using namespace std; int main() { int i; while(i<10) { cout<<"Hello World!"; cout<<"\n"; i++; } }
19th Aug 2023, 1:27 AM
Amogsiddha Aiwale
Amogsiddha Aiwale - avatar
- 1
You can use loop. For example; int num=0; while(num<10){ cout<<"Hello World \n"; num++;
16th Sep 2016, 12:25 PM
Sarvagya
- 1
int num=10; for(int i=0;i<10;i++) { cout<<"hello world...!!"<<endl; }
16th Sep 2016, 5:35 PM
abhishek shinde
abhishek shinde - avatar
- 1
int num=10; for(int i=0;i<10;i++) { cout<<"hello world...!!"<<endl; }
16th Sep 2016, 5:37 PM
abhishek shinde
abhishek shinde - avatar
- 1
how to write program that enter 15 number and print the product ?
7th Dec 2020, 8:30 PM
Mohammed Dhaifullah Kamel
Mohammed Dhaifullah Kamel - avatar
- 1
how to write program that enter 15 number and print the product ?
7th Dec 2020, 8:35 PM
Mohammed Dhaifullah Kamel
Mohammed Dhaifullah Kamel - avatar
- 2
Print hello world 10 times without using any loops in c++
3rd Jul 2017, 3:09 PM
Rohit
Rohit - avatar