Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- // A
- int n;
- cin >> n;
- for(int i = 1; i <= n; i++){
- cout << i << " ";
- }
- // B
- int n;
- cin >> n;
- for(int i = 1; i < n * 2; i += 2){
- cout << i << " ";
- }
- // C
- int a , b;
- cin >> a >> b;
- for(int i = b; i >= a; i--){
- cout << i << " ";
- }
- // D
- int n;
- cin >> n;
- for(int i = 1; i <= n; i++){
- cout << i * i << " ";
- }
- // E
- int n;
- cin >> n;
- for(int i = 1; (i * i * i) < n; i++){
- cout << i * i * i < " ";
- }
- // F
- int n;
- cin >> n;
- for(int i = 2; i < n; i *= 2){
- cout << i << " ";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement