Computer Science, asked by zeeshanhaidar1165, 1 month ago

write a program to enter​

Attachments:

Answers

Answered by thebrainlygirl789
0

Answer:

Ififujfhf

Explanation:

Hdjjdjdjdjdjdjrjjrndndndjdjr

Answered by changingtworg
0

Answer:

Using Scanner Class:

import java.util.*;

class a

{

  void main()

  {  

      Scanner sc = new Scanner(System.in);

      System.out.println("Enter the Principal, Rate of Interest and Number of Years:");

      double p = sc.nextDouble();

      double r = sc.nextDouble();

      int t = sc.nextInt();

      System.out.print((p*r*t)/100);

  }

}

Without Scanner Class:

class a

{

  void main(double p, double r, int t)

  {

      System.out.print((p*r*t)/100);

  }

}

Similar questions