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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. I didnt get the use of public Sting toString().. I
View Tutorial By: Pradesh at 2010-05-06 05:38:23
2. Hello,
I've got javax.comm and fol
View Tutorial By: Ashkan at 2009-12-19 21:51:19
3. This tutorial is very good. Actually I have been s
View Tutorial By: farhaan at 2008-03-20 15:22:13
4. Hey, this is a great explanation regarding the dif
View Tutorial By: foam roofing at 2011-04-02 17:26:52
5. hai
i can run this program bt 1 exception
View Tutorial By: Raheela at 2010-05-25 21:59:38
6. its good
View Tutorial By: Srinu at 2011-05-26 23:57:18
7. I really thanks to you for providing wonderful inf
View Tutorial By: Chandra Sekhar Puli at 2009-11-07 04:03:44
8. Hi divya, You will have to edit the SerialParamete
View Tutorial By: Ramlak at 2008-04-27 05:54:47
9. It doesnt works in Mozilla Firefox.
View Tutorial By: K Vijay Anand at 2010-06-20 09:11:26
10. Hi to All,
I am working on struts based apl
View Tutorial By: Ishmayel at 2009-02-19 21:27:14