Abbottabad University of Science
Abbottabad University of Science
Abbottabad University of Science
SCIENCE &
TECHNOLOGY
Section: C
CODE:
#include <iostream>
using namespace std;
int main() {
int lengthInFeet;
cout << "Enter length in feet: ";
cin >> lengthInFeet;
cout << lengthInFeet << " feet is equal to " <<
feetToCentimeters(lengthInFeet) << " centimeters." << endl;
return 0;
}
Q2. Write compile and run the code that can determine value from
two values be generating input.
CODE
#include <iostream>
int main() {
double value1, value2, largest;
cout << "The largest value is: " << largest << endl;
return 0;
}
Q3. Write compile and run a code that can read 3 numbers and can
tells the largest number.
CODE
#include <iostream>
int main() {
double num1, num2, num3, largest;
cout << "The largest value is: " << largest << endl;
return 0;
}
CODE
#include <iostream>
int main() {
int marks;
return 0;
}