Professional Documents
Culture Documents
/*
2. declaration of variables
8. storing it
10. using if statement and including it the for loop and doing the math inside the loop
*/
#include <iostream>
#include<fstream> // step1
#include<iomanip>
int main()
cout << " enter the maximum value (end value) :" ; // step5
cout << " enter i or I for inches to centimeters conversion: " ; // step 9
cin>> tempType1;
cout << " enter C or c for centimeteres to inches conversion: " << endl;
cout << " table generated by Abdirazak Khader yousuf and ID no is 1001852498 " << endl;
centimetres = startTemp*2.54 ;
cout << startTemp << " I" << setw(8) << centimetres << endl;
startTemp+=stepSize ;
}}
inches= (startTemp/2.54);
startTemp+=stepSize;
} else { cout << " wrong key pressed. the program has terminated " } ;
return 0;
}
SAMPLE 1
SAMPLE 2
SAMPLE 3
SAMPLE 4
SAMPLE 5