why my test case failed where did I doing wrong please reply me my code is compiling correctly but my test case failed
Farhienhiet to celcius conversions
Hi Tarshid. Please share ur code
#include using namespace std; int main() { int f=0; int c; while(f<=100){ c=(5*(f-32)/9); cout<<f<<" "<<c<<endl; f=f+20; } return 0; }
where did I do wrong in this program
Kindly refer to this code.
Hope it clears all yr doubts. If u still have any doubt u can msg back here.
again it showing wrong ans why
#include
using namespace std;
int main(){
int min,max,step,F,C,i;
cin>>min>>max>>step;
for(i=min;i<=max;){
C=(5*(i-32))/9;
cout<<i<<"\t"<<C<<endl;
i=i+step;
}
return 0;
}
this code is passing all the test cases. I have also tried submitting it now.
its not running not passing the test case please send me and explain me
have u tried submitting it again. As i can see ur last submission was at 21 Jun 2021 19:49:14. kindly refresh the page and try resubmitting it.
yes submitted it please explain me the code as I also did right output came what was wrong please explian me
so basically the ques is quite simple. u are given a min value and a max value of Fahrenheit and a step value.
Consider the example
0
100
20
all u have to do is to find Celsius values for the given range(ie find Celsius value for 0 , 20, 40, 60, 80, 100 in Fahrenheit )
Hope it clears all ur doubts
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.