Quick actions

cmd+k|ctrl+k

Navigation

Languages

LAB5_41

Snippet info

Language

Cpp

Visibility

public

Author

maloy-

Created

2018-12-10T17:14:35Z

Updated

2018-12-10T17:14:35Z

#include <iostream>
using namespace std;

int main() {
    int a[1000000] ; 
    cout << "Введите число n..." << endl ; 
    int n , x = 1 ; 
    cin >> n ; 
    for (size_t i = 2 ; i <= 2*n; i+=2){
        a[i] = i ;
        cout << x << " - " << a[i] << endl ;
        x++;
    }
    
    
    
    
    return 0;
}
INFO