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