Practical 1: Write a program to convert rupees to dollar. 60 rupees=1 dollar

Program:


import java.util.*;

public class Practical1 
{
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);
}
}



Output:-

















Comments

Popular posts from this blog

Practical 11 : Create a class called Student. Write a student manager program to manipulate the student information from files by using FileInputStream and FileOutputStream

Practical 9 : Write an interactive program to print a string entered in a pyramid form. For instance, the string “stream” has to be displayed as follows: