Computer Science, asked by mithileshyadav10185, 12 days ago

iv. Cost of 10 books is Rs 360/-, Write a Java program to calculate the value of 15 5 books. tuon the cities is​

Answers

Answered by sagnik124832
0

Answer:

I am taking the next number as 15 books as I think you have mistyped. If it's 155 then change the underlined part by 15.

import java.io*;

public class books

{

public static void main(String arts[])

{

int a = 10;

int b = 360;

double c = (360/10) * 15;

System.out.println("The price of 15 books = "+ c);

}

}

Similar questions