Write C Program View Following Shape Screen Using Loops Q37267117

Write a c++program to view the following shape on screen (using loops)

Write a c++program to view the following shape on screen (using loops) Show transcribed image text Write a c++program to view the following shape on screen (using loops)


Answer


#include <iostream>using namespace std;int main() { for (int i = 1; i <= 6; ++i) { for (int j = 0; j < i; ++j) { cout << “*”;

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.