63 200
Assignments Done
99,3%
Successfully Done
In July 2018

Answer to Question #13849 in C++ for Darryl kaye Abella Sanga

Question #13849
Write a program that will display the following pattern, given the value of n and m.
Example : if n=4, and m=3, output.
****
****
****
Expert's answer
#include <iostream>




using namespace std;




void main(){

int n, m;

cout << "Enter N = ";

cin >> n;

cout << "Enter M = ";

cin >> m;

for(int i=0; i<m; i++){

for(int j=0; j<n; j++)

cout << "*";

cout << endl;

}

}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions