Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- cout << "Analogies" << endl;
- cout << "v == velocity" << endl;
- cout << "d == distance" << endl;
- cout << "t == time" << endl;
- cout << "a == acceleration" << endl;
- cout << "vf == final velocity" << endl;
- cout << "vi == initial velocity" << endl;
- float v;
- float d;
- float a;
- float vf;
- float vi;
- bool aone;
- bool two;
- bool three;
- bool four;
- bool five;
- string have;
- char y ='y';
- char n='n';
- cout << "What information do you have?" << endl;
- cout << "Answer: \"y\" or \"n\"" << endl;;
- cout << "Do you have distance" << endl;
- if(cin >> y){
- aone =true;
- }
- else if(cin >> n){aone=0;}
- cout << aone;
- return 0;
- }
Add Comment
Please, Sign In to add comment