Write a program to display the following output using count statement.





#include<iostream>

using namespace std;

int main()

{

cout<<"*\n**\n***\n****\n*****";

}

No comments:

Post a Comment