Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- char input, s, v, t;
- s = 's';
- v = 'v';
- t = 't';
- cin>>input;
- if(input == s)
- {
- double s, v, t;
- cin>>v;
- cin>>t;
- s = v * t;
- cout<<"Putq e: "<<s<<endl;
- }
- if(input == v)
- {
- double s, v, t;
- cin>>s;
- cin>>v;
- t = s/ v;
- cout<<"Vremeto e: "<<t<<endl;
- }
- if(input == t)
- {
- double s, v, t;
- cin>>s;
- cin>>t;
- v = s / t;
- cout<<"Skorosta e: "<<s<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement