#include
using namespace std;
int main() {
float MIN, MAX, STEP;
cin>>MIN;
cin>>MAX;
cin>>STEP;
for(signed int F=0; F<=MAX; F=F+STEP){
signed int C=((F-32)*5.0)/9;
cout<<F<<" "<<C<<endl;
}
return 0;
}
#include
using namespace std;
int main() {
float MIN, MAX, STEP;
cin>>MIN;
cin>>MAX;
cin>>STEP;
for(signed int F=0; F<=MAX; F=F+STEP){
signed int C=((F-32)*5.0)/9;
cout<<F<<" "<<C<<endl;
}
return 0;
}
start the for loop from MIN value
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.