Q7. Greedy7
Predict the output : for(input 5 , 14)
Double x;
int y;
for(i=0;i<2;i++)
{ cin>>y;
x=(32-x)*(5/9);
cout<<setprecision(3)<<x<<” ”;
}
the answer givrn is 0 0…
but according to me answer should be 15.000 10.000
Q7. Greedy7
Predict the output : for(input 5 , 14)
Double x;
int y;
for(i=0;i<2;i++)
{ cin>>y;
x=(32-x)*(5/9);
cout<<setprecision(3)<<x<<” ”;
}
the answer givrn is 0 0…
but according to me answer should be 15.000 10.000