Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- //std::cout << "Hello World!\n";
- cout << "test" << endl;
- int array[10];
- for (int i = 0; i < 10; i++)
- {
- cin >> array[i];
- }
- cout << "" << endl;
- int max = 0;
- for (int i = 0; i < 10; i++)
- {
- if (array[i] > array[max])
- {
- max = array[i];
- }
- }
- cout << " Nejvetsi " << max;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement