PP 1 Sol
PP 1 Sol
2 2 2 2
3 3 3 3
4 4 4 4
Solution:
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
return 0;
}
Input: n = 4
Output:
1 2 3 4
1 2 3
1 2
1
Solution:
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
return 0;
}
Input: n = 4
Output:
A
A B
A B C
A B C D
Solution:
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
return 0;
}
Input: n = 4
Output:
1
A B
1 2 3
A B C D
1 2 3 4 5
Solution:
#include <bits/stdc++.h>
int main() {
int n;
cin >> n;
return 0;
}
***
****
***
**
Solution:
#include <bits/stdc++.h>
int main() {
int n;
cin >> n;
Sample Output :
******
* *
* *
******
Solution:
#include <iostream>
using namespace std;
int main() {
int m, n;
cin >> m >> n;
return 0;
}
****
****
****
Solution:
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
return 0;
}
Output :
1
1 2
1 2 3
1 2 3 4
Solution:
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
return 0;
}
A B
A B C
A B C D
Solution:
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
return 0;
}
Output:
1
2 1
3 2 1
4 3 2 1
Solution:
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
return 0;
}
Input: n = 4
Output:
*
**
***
****
***
**
Solution:
#include <bits/stdc++.h>
int main() {
int n;
cin >> n;
Note:- Please try to invest time doing the assignments which are necessary to build a strong
foundation. Do not directly Copy Paste using Google or ChatGPT. Please use your brain .