Display Hysteric symbols in Ascending order by using FOR Loop


Display Hysteric symbols in Ascending order by using FOR Loop:

Display Hysteric signs:

The basic and simple program of C++ language is to show hysteric symbols in ascending order. You can display hysteric symbols by using simple cout statement or if you can use for loop to display multiple hysteric signs in different formats as you can print different shapes from it.

 Code To Display Hysteric signs:




#include<iostream>

using namespace std;
void main()
{
     for(int a=0;a<6;a++)
       {
          for(int b=0;b<6;b++)
            {
                if(a>b)
                cout<<"*";
             }
         cout<<endl;
      }
}

The code given you in the post will show hysteric signs in ascending order. In the given picture you can see the shape of hysteric symbols in ascending order:
Display Hysteric symbols in Ascending order by using FOR Loop

 Also I suggest you to Bookmark this website I hope you will come soon here for more presentations,programs and tutorials here.
Thanks for visiting my website!




Comments

Popular posts from this blog

How to Run Assembly Language Programming Code In Visual Studio 2019

How to Display Table of any Number in Assembly Language

How to Display Character in Assembly language