Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(){
- int a[3];
- int max = 0;
- for(int i=1;i<4;i++){
- cout <<"inserire numero " << i <<"\n";
- cin >> a[i-1];
- }
- if(a[0]>a[1])
- max = a[0];
- else max = a[1];
- if(max>a[2])
- else max = a[2]
- cout << "massimo = " << max <<"\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement