Friday, June 4, 2021

C++ program for making shape (POP) (120)

 #include<iostream>

using namespace std;

int main()

{

int x;

cout<<"enter a number:";

    cin>>x;

    cout<<x<<x<<x<<x<<endl;

    cout<<x<<" "<<" "<<x<<endl;

    cout<<x<<" "<<" "<<x<<endl;

    cout<<x<<" "<<" "<<x<<endl;

    cout<<x<<" "<<" "<<x<<endl;

    cout<<x<<" "<<" "<<x<<endl;

    cout<<x<<x<<x<<x<<endl;

    

}

No comments:

Post a Comment