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:
Thanks for visiting my website!
Comments
Post a Comment