lab6_76

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { const int n = 20 ; int a[n]; for (size_t i = 0 ; i < n ; i++ ){ a[i] = rand() % 100 ; cout << i+1 << " - " << a[i] << endl ; } cout << endl ; for (size_t i = 0 ; i < n ; i++){ if ((a[i]>=10) && (a[i]<100)){ if (a[i] % 10 == 7){ cout << i+1 << " - " << a[i] << endl ; break ; } } } return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines