Advertisement
Guest User

Untitled

a guest
Aug 17th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include "pch.h"
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.     //std::cout << "Hello World!\n";
  7.     cout << "test" << endl;
  8.     int array[10];
  9.     for (int i = 0; i < 10; i++)
  10.     {
  11.         cin >> array[i];
  12.     }
  13.     cout << "" << endl;
  14.     int max = 0;
  15.     for (int i = 0; i < 10; i++)
  16.     {
  17.         if (array[i] > array[max])
  18.         {
  19.             max = array[i];
  20.         }
  21.     }
  22.     cout << " Nejvetsi " << max;
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement