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 << " OK" << '\n';
- }
- // B
- int a , b;
- cin >> a >> b;
- for(int i = a; i <= b; i++){
- if(i % 2 != 0) // tekdirse
- cout << i << " ";
- }
- // C
- int a , b;
- cin >> a >> b;
- for(int i = b; i >= a; i--){
- if(i % 2 == 0) // cutdurse
- cout << i << " ";
- }
- // D
- int n;
- cin >> n;
- for(int i = n; i >= 0; i--){
- cout << i << " sek\n";
- }
- // E
- int n;
- cin >> n;
- for(int i = 2; i < n; i *= 2){
- cout << i << " ";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement