Comment on Tutorial - while (1) Loops in C++ By Reema sen



Comment Added by : Jorgeus

Comment Added at : 2012-08-30 09:07:03

Comment on Tutorial : while (1) Loops in C++ By Reema sen
#include <iostream>
using namespace std;

//While loop

main()

{
int num=1;
while(num<=10)
{
cout<<num<<endl;
num++;
}
return 0;
}


Output:
1
2
3
4
5
6
7
8
9
10

Try this, it's very simple


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Thank you for a great explanation now I'm in the l
View Tutorial          By: C++Noob at 2011-12-22 04:43:31

2. What is the use of "SMSConnector" in thi
View Tutorial          By: Mudra at 2010-06-04 15:04:55

3. so what about, if i need to remove these letters f
View Tutorial          By: need Help at 2009-11-12 08:40:31

4. Hi all this program is working very fine .... i ha
View Tutorial          By: Ashish at 2009-03-25 04:28:25

5. its a nice site bcoz it gives a bright IDEA about
View Tutorial          By: surya santhan at 2012-07-11 16:28:06

6. it 's great
View Tutorial          By: tanawat bhtk at 2008-03-19 22:17:53

7. well written hog .good going
View Tutorial          By: Rajesh at 2010-08-17 03:38:05

8. good job.. i understand it clearly..
its in

View Tutorial          By: xmplexd at 2010-08-04 02:12:30

9. thanks for suppporting us
View Tutorial          By: sonia at 2010-11-29 00:46:56

10. Life-saving post, man!
(In my case i had II

View Tutorial          By: Julianno Jungle at 2013-06-28 18:32:03