Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <cmath>
- #include <math.h>
- using namespace std;
- int massive[100];
- int d;
- int main(int argc, const char * argv[]) {
- cin >> d;
- for(int i = 1; i <= d; i++){
- cin >> massive[i];
- }
- for(int i = 1; i <= d; i++){
- if(i % 2 == 1){
- cout << massive[i] << " ";
- }
- }
- }
Add Comment
Please, Sign In to add comment