#include
using namespace std;
int main()
{
int f=0;
int c;
cin>>c;
while(f<=100)
{
c = (5*(f-32))/9;
cout<<f<< " "<<c<<endl;
f=f+20;
}
return 0;
}
#include
using namespace std;
int main()
{
int f=0;
int c;
cin>>c;
while(f<=100)
{
c = (5*(f-32))/9;
cout<<f<< " "<<c<<endl;
f=f+20;
}
return 0;
}
@uks.2610
hello utkarsh,
u need take input as specified in input format .
then u need to iterate from minimum fehrenheit to maximum fehrenheit by taking fixed step .
and convert each fehrenheit to celcius
i didnt understand step part
from current fehrenheit how many steps u should take to get to next fehrenheit is defined by step.
for example if f=4 and step is 5
then next fehrenheit will be 4+5 ->(9)
from 9 next fehrenheit will be 9+5 -> (14)
so on
#include using namespace std; int main() { int f=0; int c,x; while(f<300) { cin>>f; int c = (5*(f-32))/9; cout<<f<<" "<<c<<endl; cin>>x; f= f+x; } return 0; }
i have done like this but then also it is showing error