Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- float l;
- float h;
- int s;
- cout<<"Please give in a lower limit, limit >= 0: "<<endl;
- cin>>l;
- cout<<"Please give in a higher limit, 10 > limit ,= 50000: "<<endl;
- cin>>h;
- cout<<"Please give in a step, 0 < step <= 10: "<<endl;
- cin>>s;
- cout<<""<<endl;
- cout<<"Celsius"<<" "<<"Fahrenheit"<<endl;
- cout<<"-------"<<" "<<"----------"<<endl;
- for(int i=l; i <=h; i = i+s)
- {
- cout<<left<<setprecision(8)<<showpoint<<i<<endl;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment