Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- float a; //ความเร่ง
- float t; //เวลา
- float v; //ความเร็ว
- float s; //
- std:: cout<<"Enter a : ";
- std:: cin >> a;
- std:: cout<<"Enter v : ";
- std:: cin >> t;
- v = a*t;
- s = v*t;
- std::cout << "ค่า v " << v < <endl ;
- std::cout << "ค่า s "<< s;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement