Conversion fahernheit t celsius

import java.util.;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
double F=sc.nextDouble();
double C=(F-32)
(5f/9);
int part1=(int)F;
int part2=(int)C;
System.out.println(part1+" "+part2);

}

}
sir where i went wrong plz help to solve

hey @karthik1989photos first of all take input Minimum Fahrenheit value, maximum Fahrenheit value and steps.
some syntax error in your code


you can see this

double F=sc.nextDouble();

import java.util.*;

import java.util.Scanner;

public class Main {

public static void main(String args[]) {

Scanner sc=new Scanner(System.in);

int min=sc.nextInt();

int max=sc.nextInt();

int step=sc.nextInt();

while(min<=0&&max<=500){

double F=sc.nextDouble();

double C=(F-32)*(5f/9);

int part1=(int)F;

int part2=(int)C;

System.out.println(part1+" "+part2);

}

step=step+20;

}

}
plz help to run my testcases

import java.util.*;

import java.util.Scanner;

public class Main {

public static void main(String args[]) {

	Scanner sc = new Scanner(System.in);

	int min = sc.nextInt();

	int max = sc.nextInt();

	int step = sc.nextInt();

	while (min <= max) {

// double F = sc.nextDouble();

		double C = (min - 32) * (5f / 9);

		//int part1 = (int) C;

		int part2 = (int) C;

		System.out.println(min + " " + part2);
		min +=step;

	}

	

}

}