EXPLAIN THE USAGE OF CONVERSION JAVA PROGRAM - Carrier Study

Breaking

Home Top Ad

Responsive Ads Here

Thursday, May 24, 2018

EXPLAIN THE USAGE OF CONVERSION JAVA PROGRAM

import java.util.*;
class type conversion
{
public static void main (string args[])
{
int a,b;
float r;
scanner os= new scanner (system.in);
system.out.println("enter any 2 integer :");
a=os.next int
b= os.next int
r=(float) a/b;
system.out.println("ratio of a,b :" +r);
}
}

No comments:

Post a Comment