#include
using namespace std;
int main() {
int min,max,step;
cin>>min>>max>>step;
for(min;min<=max;min=min+step){
cout<<min<<" "<<(int)((.55)*(min-32))<<endl;
}
return 0;
}
please provide with the error in the code.
#include
using namespace std;
int main() {
int min,max,step;
cin>>min>>max>>step;
for(min;min<=max;min=min+step){
cout<<min<<" "<<(int)((.55)*(min-32))<<endl;
}
return 0;
}
please provide with the error in the code.
Check your output with test case:
0
300
20
And verify it.
If you are unable to get your mistake then please save your code on ide.codingblocks.com and then share its link.
Check now.