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. Splendid! Haven\'t used asserts before, very helpf
View Tutorial          By: Anonymous at 2009-03-11 04:18:42

2. hello sir , i just implement your code and modify
View Tutorial          By: tushar at 2012-01-31 05:21:37

3. i manage to download all the 5 part and compile th
View Tutorial          By: Selva at 2008-04-09 07:53:09

4. it is very useful and in understandable manner
View Tutorial          By: Deepika at 2012-03-26 05:10:15

5. it is very good service.
View Tutorial          By: rajesh at 2009-11-14 02:48:18

6. very useful article. every jsp resource will get g
View Tutorial          By: pechirani at 2011-06-29 04:00:49

7. Error loading SolarisSerial: java.lang.Unsatisfied
View Tutorial          By: amit doshi at 2009-04-06 02:00:28

8. To execute program you need comm.jar that is not a
View Tutorial          By: shreyansh shah at 2012-07-11 05:57:42

9. I have error on "serversocket", vb.net h
View Tutorial          By: stephen at 2012-07-14 19:40:03

10. sUPER eXPLAnation
View Tutorial          By: Surendra at 2015-06-13 07:23:56