Social Sciences, asked by guptaabhinav633, 2 months 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 PranavNaidu10
3

Answer:

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);

Explanation:

Answered by sumit45dt
3

Explanation:

PLEASE MARK ME AS BRAINLIST

Attachments:
Similar questions