Computer Science, asked by rids94, 8 months ago

a store has purchased some cola cans of various brands it purchased 50 cans of 15 rupees per can 30 cans of 20 rupees per can and 40 cans of 21 rupees per can write a programm to compute how much amount did the store pays​

Answers

Answered by parampremdhawa
14

Answer:

public class Java_Money

{

public static void main(String args[])

{

int can1=50*15; //Finding the amount of 50 cans

int can2=30*20; //Finding the amount of 30 cans

int can3=40*21; //Finding the amount of 40 cans

int sum=can1+can2+can3; //Finding total

System.out.println("The total amount paid by the store is"+sum);

}

}

Another way..

the sum can be directly founded by-

int sum=(50*15)+(30*20)+(40*21);

hope this java program helped u

Answered by ayushmnps02810
0

Explanation:

(3 ^ (- 6/7) * 4 ^ (- 3/7) * 9 ^ (3/7) * 2 ^ (6/7))/(2 ^ 2 + 2 ^ 0 + 2 ^ - 2fkjk

Similar questions