Write a program in C++ to input a single digit number and print a rectangular form of 4 columns and 6 rows
- برمجة سي بلس بلس
- برمجة
- 2021-05-11
- MarwaMohammed
الأجوبة
#include <iostream>
using namespace std;
int main()
{
int x;
cout << "\n\n Make a rectangular shape by a single digit number :\n";
cout << "--------------------------------------------------------\n";
cout<<" Input the 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<<x<<x<<endl;
cout << endl;
return 0;
}
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال