Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main()
  5. {
  6.    
  7.     using namespace std;
  8.    
  9.     float a,n,e,s,o = 0.0;
  10.    
  11.     cout << "Inserisci il valore del nord\n";
  12.     cin >> n;
  13.    
  14.     cout << "Inserosci il valore del'est: ";
  15.     cin >> e;
  16.    
  17.     cout << "Inserisci il valore del sud: ";
  18.     cin >> s;
  19.    
  20.     cout << "inserisci il valore di ovest: ";
  21.     cin >> o;
  22.    
  23.     n = s;
  24.     e = o;
  25.     //Ugule per le altre :)
  26.  
  27.     cout << "Il nord e' uguale a " << n << endl;
  28.     cout << "L'est e' uguale a " << e << endl;
  29.     cout << "Il sud e' uguale a " << s << endl;
  30.     cout << "L'ovest e' uguale a "  << o << endl;
  31.    
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement