10 comments:

  1. import java.util.Scanner;
    class A()
    {
    public static void main(string args[])
    {
    int r;
    Scanner obj=new Scanner(System.in);
    r=obj.nextInt();
    int area;
    area=3.14*r*r;
    System.Out.println("The area of circle is="+area);
    }
    }

    ReplyDelete
  2. class A()
    {
    public static void main(string args[])
    {
    int p=10;
    float r=2.5;
    int t=6;
    int simple;
    simple=(p*r*t)/100;
    System.Out.println("The simple interest is="+simple);

    }
    }

    ReplyDelete
  3. class B
    {
    public static void main(string args[])
    {
    int t=4;
    int n=6;
    float r=3.9f;
    int p=5,000;
    int A;
    A=p(1+r/n)^nt;
    System.Out.println("The A interest is="+A);
    }
    }

    ReplyDelete
  4. import java.util.Scanner;
    class B
    {
    public static void main(string args[])
    {
    Scanner obj=new Scanner(System.in);
    int f;
    f=obj.nextInt();
    int temp;
    temp=((f-32)*(5/9));
    System.Out.println("The temprature in celcius is="+temp);

    }
    }

    ReplyDelete
  5. import java.util.Scanner;
    class A
    {
    public static void main()
    {
    Scanner obj=new Scanner(System.in);
    int d;
    d=obj.nextInt();
    int s;
    s=d*69;
    System.Out.println("The Rupees for the Equivalent Dollar is="+s);

    }
    }

    ReplyDelete
  6. class Conversion{
    public static void main(String ar[])
    {
    double c,f;
    System.out.println("enter the temp in celsius");
    c=Double.parseDouble(ar[0]);
    f=(c*(9/5))+32;
    System.out.println("f"+f);
    }
    }

    ReplyDelete
  7. class Simple
    {
    public static void main(String ar[])

    {
    double p,r,t,s;
    System.out.println("enter the value of principal rate and time");
    p=Double.parseDouble(ar[0]);
    r=Double.parseDouble(ar[1]);
    t=Double.parseDouble(ar[2]);
    s=(p*r*t)/100;
    System.out.println("The simple intrest is="+s);
    }
    }

    ReplyDelete
  8. import java.io.*;
    import java.util.Scanner;
    class Compound{
    public static void main(String ar[])
    {
    int t,n,p;
    double A,r;
    Scanner obj=new Scanner(System.in);
    System.out.println("enter the value of princple rate,time and number");
    p=obj.nextInt();
    r=obj.nextDouble();
    t=obj.nextInt();
    n=obj.nextInt();
    A=p*Math.pow((1+r/n),n*t);
    System.out.println("the intrest is "+A);
    }
    }

    ReplyDelete
  9. import java.util.Scanner;
    class Dollar
    {
    public static void main(String ar[])
    {
    int d,r;
    Scanner obj =new Scanner(System.in);
    System.out.println("enter the currency in dollar");
    d=obj.nextInt();
    r=d*69;
    System.out.println("in rupees="+r);
    }
    }

    ReplyDelete
  10. class Area {
    public static void main(String ar[])
    {double area,radius;
    Scanner obj= new Scanner(System.in);
    System.out.println("enter the value ofradius");
    radius=obj.nextDouble();
    area=3.14*radius*radius;
    System.out.println("area"+area);
    }
    }

    ReplyDelete