Computer Science, asked by TbiaSamishta, 1 year ago

Charity animal Hospital has received 1193 packets write a Java Program that displays how many dozens of packets and how many extra packets has the hospital received (a dozen = 12 units)

Answers

Answered by M3CH4
56
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);
}
}
Answered by dineshagarwal4813
21

Answer:

I hope you understand please mark me as brainlist

Explanation:

Class Packets

{

Public static void main ( Strings args [])

{

int p = 1193 ;

int d = p/12;

int e = p % 12 ;

System. Out. Println ( "Dozen ="+d) ;

System. Out. Println ( "Extra ="+e) ;

}

}

Similar questions