Quick actions

cmd+k|ctrl+k

Navigation

Languages

lab6_81

Snippet info

Language

Cpp

Visibility

public

Author

maloy-

Created

2018-11-23T19:51:02Z

Updated

2018-11-23T19:51:02Z

#include <iostream>
using namespace std;

int main() {
    int a[15];
    for ( int i = 0 ; i <=14 ; i++ ){
        a[i] = 20; 
        cout << i + 1 << " = " << a[i] << endl ;  
    }
    for ( int i = 0 ; i <=14 ; i++ ){
        if (a[i] == a[i+1]){
            cout << "Повтор = " << a[i] << " под номером = " << i+1 << endl ; 
        }
    }
    
    
    
    return 0;
}
INFO