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