Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. {
  2. int luku = 1;
  3. float pituus;
  4. float t[1];
  5. float t[2];
  6. float t[3];
  7. float t[4];
  8. float t[5];
  9. float tulos;
  10. cout << "Hypyn pituus: ";
  11. cin >> pituus;
  12. while ( luku <= 5 )
  13. {
  14. cout << "Tuomarin " << luku << " pisteet: ";
  15. cin >> t[luku];
  16. luku++;
  17. }
  18. cout << endl;
  19. tulos = pituus * 0,9 + t1 + t2 + t3 + t4 + t5
  20. cout << "Hypyn pisteet: " << tulos << endl;
  21. system("PAUSE");
  22. return EXIT_SUCCESS;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement