Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. char input, s, v, t;
  6. s = 's';
  7. v = 'v';
  8. t = 't';
  9. cin>>input;
  10. if(input == s)
  11. {
  12. double s, v, t;
  13. cin>>v;
  14. cin>>t;
  15. s = v * t;
  16. cout<<"Putq e: "<<s<<endl;
  17. }
  18. if(input == v)
  19. {
  20. double s, v, t;
  21. cin>>s;
  22. cin>>v;
  23. t = s/ v;
  24. cout<<"Vremeto e: "<<t<<endl;
  25. }
  26. if(input == t)
  27. {
  28. double s, v, t;
  29. cin>>s;
  30. cin>>t;
  31. v = s / t;
  32. cout<<"Skorosta e: "<<s<<endl;
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement