daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest Aug 18th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. int main()
  3. {
  4. using namespace std;
  5. float cislo1,cislo2,cislo3,cislo4,cislo5,body1,body2,body3,body4,body5,prumer;
  6. cout << "Zadej 10 cisel 5 na znamky a 5 na body kazde cislo oddel eneterem" << endl;
  7. cin >> cislo1;
  8. cin >> cislo2;
  9. cin >> cislo3;
  10. cin >> cislo4;
  11. cin >> cislo5;
  12. cin >> body1;
  13. cin >> body2;
  14. cin >> body3;
  15. cin >> body4;
  16. cin >> body5;
  17. prumer = (((cislo1*body1)+(cislo2*body2)+(cislo3*body3)+(cislo4*body4)+(cislo5*body5))/(body1+body2+body3+body4+body5));
  18. cout << "Tvuj prumer je "<< prumer;
  19. cin.get();
  20. cin.get();
  21. return 0;
  22.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top