Computer Science, asked by rupanjana43, 7 months ago

write a java program ratan brought 260 kgs of mango from the market. Each kg of mango is 82.25 rupees cost. Calculate and print how much amount ratan has to pay to the fruit vendor??​

Answers

Answered by manuprajapati519
1

Answer:

public class mango

{

public static void main(String args[])

{

double a = 82.25;

double b = 260;

double sum = 260*82.25;

System.out.println("This is the total amont" +sum);

}

}

Explanation:

First you have to find out value of 1kg of mango, after finding the price of 1kg mango, you can multiply the price of 1kg mango with 260kg to find out total price.

THANK YOU:)

Similar questions