#include <iostream>
int main()
{
std::cout << "Enter the speed of the air plane: ";
int v ;
std::cin >> v;
std::cout << "Enter its acceleration: " ;
double a ;
std::cin >> a;
// note: ^ is the bitwise xor operator
// https://msdn.microsoft.com/en-us/library/3akey979.aspxconstdouble length = (v*v) / (2*a) ;
// print out the computed length
std::cout << "that means the minimum runway legnth will be: " << length << '\n' ;
}
#include <iostream>
usingnamespace std;
int main( )
{
{ // random curly brace
int v,length;
//v is speed in meters per second, length is runway length of the airplain.
double a;
// a is acceleration of the airplain.
cout << "Enter_v\n";
cout <<"v_is_speed_of_an_airplain\n";
cout << "Press_enter_key_after_each_variable\n";
cin >> v;
cout << "Enter_a \n";
cout << "a is acceleration\n";
cin >> a;
length = (v^2) / (2*a); // ^ is actually the bitwise XOR operator
cout << "that means the legnth will be: ";
cout << "Display the mininum runway length\n";
return 0;
}