Linguaggio C/C++ – Massimo tra tre numeri con flow chart

Dati 3 numeri interi inseriti dall’utente, determinare il maggiore.
Si faccia riferimento al seguente flow chart:

7Vrfc6M2EP5r/HgZG2zsPCZprn25Tqe5aa9PHQVk0EQgV+DEvr/+VmiFJWR3kougjXOe8Rg+/WK//bTsgifxTbn7WZJN8UlklE+iqaQ1+0on8U+TKJrCF6Bsp09n83iOyF4jy8VMA7lkGXY6AHfdRDOcKd+yjNZOx0YI3rCNC6aiqmjaONhacHeJDcnN9AfgLiXcR/9kWVNodBUlB/wXyvLCLDNLLnXLPUkfcim2Fa43ieJ1+9HNJTFzoVW7qT6N4lgDewRiONFLVc4lfRWidG1jeBE4472QGZU4K2KcVQ82S/EtOE8KASPVUbm7oVw50DgCh02ijyc6dPxIWrnLnx4zRwsfCd8izRqom73hvW6keOgohwu9LpqSw+EMDuuCbFS/cpcr1V2suXhKCyKbC1JVoiENE9XfqiPhLFescbqGi7uW2AbIJbB77V87mvNIZUONYDueQORUlLSRe+hCkMa8g1qn4ZjlAr2KPlyiXp4OGlogT4UlnyjukwcHyN9xLpe4mSzqaAYKxtNKVPADhoMOqRqizLaYpDvWfFHwxQLP/rJafqOSgXGtiNRAoEnure7qVPXv2voDfC+epFxdtQPUYitThMyeaIjMKY7TYeS5jpGUg+sf3SWezbJZ31Ls3eer3z+Hkm0NhjWtYp8K1tC7DWktf4JuQ8rUmGVUaiRpqXQ2PSLT+YtVitvhzFWKe9FRaWv5SCrF9S2VXoVSaEYackKeG05Y9SGXlFaDKRXC9Xcp9eXxFAP1KEoNJjzcXo7wWkNGEh6ubwkPLXnzwpuZWDe88pZvUXm4XRzltYaMpDxc31IejDkP5Y0W87TDevl4wlXGvBZglSqluNCVRPLPVhULIJf48nIKHxtKcvUL9xyFklIx1SIAqNZ2RrgYPanuHMxZNGV1m9qPm0J1udBLvWT6Pd9LK89Ln66+qBnU8TTYnX4jRUprsHlkInty77KZ4MlojBX6CSKDSfJ/QuQ88WvPMESaAcPW8WrM6Tr+w7CFvLe9TSUTvJBf+DnUmT0UiSOMYIbLBMtPi0tD7yu5PHZDOy9hzqdoUkcmTmyRuULIITPC6Pd8Mv0Uyw6XwdKt/yhczns7vCtmgofLhV+evybNgvX8NKv1zFkmWvFqrERriWHqTRViZvvbhVjShohxCjGzfj9KjFSK3bertvvI+OnIm4lAUlyYVLyToh97w1Rm2oMOq7e/6sDxdp86L7zCFq0MHnETP+L+QaXw+ANzVIi0SWsZvcF4jFt+zTjvQeb+nwJJak9fK3IYvD68woaSZZla5ijFAnordwBSQD94mDBoKuu+k4pW/o3OMOxkDC9m3c9kPxJev1vae+XYkVeBQWhf+rHi/Yq9ny0MJval/2bwHYu9T/tgYjfrHMml2SHj1cC9AVSLSY070MKske/RebOpe4OYG68Ed54fqX4477XOM8+POuf5SVUY5/mPA34477U5grfzhnLe6Tc9p50H97IfzvuXcsY81+mc51eD3+M8OD38Ma9ts/5iGd9+Aw==

[code language=”cpp” gutter=”true” collapse=”false”]

#include <iostream>
using namespace std;

int main()
{
short N1, N2, N3, Max;

cout << "Inserire il primo numero: ";
cin >> N1;

cout << "Inserire il secondo numero: ";
cin >> N2;

cout << "Inserire il terzo numero: ";
cin >> N3;

if (N1 > N2)
Max = N1;
else
Max = N2;

if (N3 > Max)
Max = N3;

cout << endl << "Il valore piu’ grande inserito e’: " << Max << endl;

system ("PAUSE");
return 0;
}

[/code]

Visite: 24