Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     float a,b,c,arsredina;
  8.  
  9.     cout<<"Vnesi broj a"<<endl;
  10.     cin>>a;
  11.     cout<<"Vnesi broj b"<<endl;
  12.     cin>>b;
  13.     cout<<"Vnesi broj c"<<endl;
  14.     cin>>c;
  15.  
  16.     arsredina = (a+b+c)/3;
  17.     cout<<"Aritmetickata sredina e "<<arsredina<<endl;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement