Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- #include <iomanip>
- using namespace std;
- int main(){
- cout << "Program 2 | Veljko Kovacevic IV3" << endl;
- int n, br = 0;
- cin >> n;
- int starost[n];
- for (int i = 0; i < n; i++){
- cout << "Ucenik " << i << " : ";
- cin >> starost[i];
- if(starost[i] >= 18) br++;
- }
- cout << "Ima " << br << " punoletnih";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement