How can i made this code run for both testcases

#include
//#include
using namespace std;
int main()
{
int min;
int C;
int max;
cin>>min;
cin>>max;
int step;
cin>>step;
int F[100],i;
for(i=0;i<=5;i++)
{
F[i]=min;
C=(5*(min-32))/9;
cout<<min<<" "<<C<<endl;
min=min+step;
// i=i+1;
}

}

Hi @supratik260699
There are few changes that you have to make :

  1. Instead of for loop you have to use while loop with condition that min<=max
  2. There is no need of F[] array