Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int x;
- int N[1000];
- cin>>x;
- int i;
- for (i = 1; i <= x; i++)
- {
- cin>>N[i];
- }
- for (int a = 1; a <= x; x+= 2)
- {
- N[i] = N[a]-1;
- }
- for (int b = 0; b <= x; b+= 2)
- {
- N[i] = N[b]*2;
- }
- for (int c = 1; c <= x; c++)
- {
- cout<<N[c];
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement