Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
polja_z1.cpp
00001 #include <iostream> 00002 #include <cstdlib> 00003 #include <windows.h> 00004 00005 using namespace std; 00006 00007 int main (){ 00008 00009 double utrzak [6]; 00010 double MAX=0, MIN; 00011 00012 cout << "Unesite 1. utrzak" << endl; 00013 cin >> utrzak[0]; 00014 MIN = utrzak[0]; 00015 00016 for (int i = 1; i < 6; i++){ 00017 cout << "Unesite " << i+1 << ". utrzak"<< endl; 00018 cin >> utrzak[i]; 00019 00020 if (utrzak[i] > MAX){ 00021 MAX = utrzak[i]; 00022 } 00023 if (utrzak[i] < MIN){ 00024 MIN = utrzak[i]; 00025 } 00026 } 00027 00028 cout << endl; 00029 00030 for (int i = 0; i < 6; i++){ 00031 00032 cout << utrzak[i]<< " "; 00033 Sleep(100); 00034 00035 00036 } 00037 00038 cout <<endl; 00039 00040 cout << "Max utrzak je: " << MAX << endl; 00041 cout << "Min utrzak je: " << MIN << endl; 00042 }
Generated on Thu Jul 14 2022 21:05:48 by
1.7.2