C++

C++ is the language Cfree is the compiler.. You are the Program User. I am the Programmar. ~Osaid Jamal

Wednesday, 16 April 2014

While Loop- Basic Program- Using C++

#include<iostream>
using namespace std;

 int main()
{
int a=10;

while(a<20)
{
cout<<"value of a:" <<a <<endl;
a++;
}
}

Output:


Posted by Unknown at 08:08
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Unknown
View my complete profile

Blog Archive

  • ▼  2014 (16)
    • ▼  April (16)
      • Pyramid - Using Nested For Loop
      • Switch Case- Simple Program
      • Calculator Using Else if Statement - C++
      • Nested If Statement+Logic Gates- Using C++
      • While Loop Basic Program1- Using C++
      • While Loop- Basic Program- Using C++
      • Compare Two Values- Relational Operators- Using C++
      • For loop Basic Program- Using C++
      • For Loop- Counter Program- Using C++
      • Factorial Using C++
      • Representation of a Linked List In a Memory
      • Array Using C++
      • Pointers Using C++ Program 1
      • Nested For Loop Using C++ Program(2)
      • Fabonacci series Using C++
      • 00- How to print any message using c++ ?
Ethereal theme. Powered by Blogger.