Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. main()
  4. {
  5.  int tmax,cont,t;
  6.  cont=0
  7.  tmax=0
  8.  while (cont<5)
  9.  {
  10.     cout <<"Inserire la temperatura"
  11.     cin>>t
  12.     cont=cont++
  13.     if (t>tmax)
  14.         {
  15.         tmax=t
  16.         }
  17.  }
  18.  cout<<"La temperatura massima é" tmax
  19.   system ("PAUSE");
  20.  return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement