Quick actions

cmd+k|ctrl+k

Navigation

Languages

LAB6_11

Snippet info

Language

Cpp

Visibility

public

Author

maloy-

Created

2018-11-23T19:37:38Z

Updated

2018-11-23T19:37:38Z

#include <iostream>
using namespace std;

int main() {
    
    int i = 0 , j=1 ; 
    int a[20];
    while (true){
        if(((j % 13 == 0 ) or ( j % 17 == 0 )) && j>=300){
            a[i] = j; 
            i++;
            j++;
        }
        else{
            j++;
        }
            if (i == 20) {
                break; 
            }
    }
    for ( int i = 0 ; i<=19; i ++){
        cout << i+1 << " = " << a[i] << endl ; 
     }
    
    cout << "============================" << endl ; 
    
    
    
    
    
    
    return 0;
}
INFO