Display Hysteric symbols in Descending order by using FOR Loop


Today I will tell you how to display hysteric signs in descending order by using for loop and if statement. The simple program and teachers that program in the start of your programming classes. They start their programming by simple displaying hysteric symbols in different formats in Microsoft visual C++, Turbo C++ or by using Microsoft visual studio. The program to show the hysteric symbols in descending order is given below:




#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 program you see in the middle of the post is written in Microsoft visual C++. The output of the following code is given below:

 As you can see on the given picture the output of the program the hysteric signs are displayed in descending order in Microsoft Visual C++.Thanks for visiting my blog. Kindly bookmark my website I hope you will come here soon.
Also you can tell us in comments of which C++ program you want. Our team will provide you that program in short time.


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