Computer Science, asked by ReginaEkka, 10 months ago

write a Java program to calculate the cost of 15 apples if the cost of 6 apples is 19​

Answers

Answered by ashwin456ojha
1

Answer:

int cost_of_app = 19 % 6

int cost_of_fif_app = cost_of_app * 15

String sr = String.valueOf(cost_of_fif_app)

System.out.println("The cost of 15 apple is" + sr)

IF U WANT TO UNDERSTAND THE CODE JUST TELL ME...

Similar questions