C++

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

Monday, 21 April 2014

Pyramid - Using Nested For Loop

#include<iostream.h>
main()
{
   for(int i=0;i<3;i++)
{
for(int j=0;j<=i;j++)
cout<<" "<<j;
cout<<endl;
}
}


Output:


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

No comments:

Post a Comment

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.