write a program in java to accept cost price of a bag from the user and find and print the total cost of ten bags
Answers
Answered by
0
Answer:
hdheehhehebenneenjej
Explanation:
nnejjnd NJ sjwnsnns
Answered by
0
Explanation:
class cost
{
public static void main()
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter the cost price of 1 bag");
double cp=sc.nextDouble();
double newcp=cp*10;
System.out.println("C.P. of 10 bags ="+ newcp)
}
}
Similar questions