Computer Science, asked by shivamyadavdeoria1, 5 hours ago

1).Charity animal Hospital has received 1193 packets. write a program that displays how many dozen of packets and how many extra packet has the hospital received (a dozen = 12 units).

2). Extend previous program so that it tells how many gross,how many dozens and how many extra packets has the hospital received(note:A gross=12 dozens or 144 units)​

Answers

Answered by degonight
0

Answer:

1. class Packets

{

public static void main (String args[])

{

int p=1193;

int d=p/12;

int e=p %12;

System.out.println("Dozen="+d);

System.out.println("Extra="+e);

}

}

2.I am sorry but I don't know this answer

Explanation:

sorrrrrrryyyyy

Similar questions