0
import java.util.*; class Program { public static void main(String[] args) { int ch; float usd,inr;
does anybody know what is the mistake in this program?
5 Respuestas
+ 17
import java.util.*;
class Program
{
public static void main(String[] args) {
int ch;
float usd,inr;
}
}
/* You haven't closed the braces which you had opened at the beginning. That's the problem. Now it works fine. */
+ 8
this program is urs im just edited. use inr=in.nextFloat ();
+ 1
import java.util.*;
class InrtoUsd
{
public static void main(String m[])
{
double inr,usd;
Scanner in=new Scanner(System.in);
System.out.println("Enter INR to convert into USD:");
inr=in.nextInt();
usd=inr/60;
System.out.println("INR="+inr+" is USD="+usd);
}
}
what is problem in this?
+ 1
in o/p it shows that exception in thread
??