Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- main()
- {
- int tmax,cont,t;
- cont=0
- tmax=0
- while (cont<5)
- {
- cout <<"Inserire la temperatura"
- cin>>t
- cont=cont++
- if (t>tmax)
- {
- tmax=t
- }
- }
- cout<<"La temperatura massima é" tmax
- system ("PAUSE");
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement