Pratical 1

Aim:- Write a program to convert rupees to dollar. (60 rupees=1 dollar).

Java Code:-

import java.lang.*;

class pra1
{
   public static void main(String args[])
   {
      int rs,dol;
      rs=Integer.parseInt(args[0]);
      dol=rs/60;
      System.out.println("Dollar= "+dol);
    }
}

Output:-

No comments:

Post a Comment

Programs

Home Aim:- Write a program to convert rupees to dollar. (60rupees=1 dollar). Aim:- Write a program that calculate percentage marks...