Author: Nilprasad Birajdar
Tester: Rushikesh Thakare
Editorialist: Shadab Shaikh
DIFFICULTY:
CAKEWALK
PREREQUISITES:
None
PROBLEM:
Yogesh wants to draw a pattern for his assignment. However, Yogesh is too busy now, so he has asked you for help. Your task is very simple. Just print the pattern for the corresponding NN value by observing sample test cases.
SOLUTIONS:
Setter's Solution
#include
using namespace std;
int main() {
int t, n;
cin>>t>>n;
for(int i=1;i<=n;i++){
for(int j=1; j<=i; j++){
cout<< "*" <<" ";
} cout<<endl;
}
return 0;
}