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



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. very good tutorial..
View Tutorial          By: shobhit at 2010-05-04 12:17:41

2. hi i am shahid i have made SMS application in j2me
View Tutorial          By: shahid khan at 2012-06-18 13:19:06

3. explaination is very good ,(lucid and succinct app
View Tutorial          By: shailendra singh at 2010-06-08 11:24:29

4. Answer for comment 5
this loop is work infi

View Tutorial          By: salman at 2013-03-10 07:30:53

5. Hi All........
People those who are ge

View Tutorial          By: Abhijit at 2013-05-28 11:24:24

6. Thanks a ton sir.....
This is very informat

View Tutorial          By: Shailaja at 2009-12-27 10:43:42

7. Thanks, you save my day!
View Tutorial          By: ivex at 2015-06-25 20:20:07

8. It's really helpful , thanks a lot
View Tutorial          By: Avijit at 2009-09-08 05:18:39

9. I am getting this exeception when trying to send m
View Tutorial          By: praveen at 2012-12-27 11:15:14

10. this really helps me alot :)
View Tutorial          By: liezl at 2014-08-08 13:38:58