0% found this document useful (0 votes)
1 views1 page

Junk, Java

This Java program prompts the user to input two integer values, a and b. It then calculates and displays the result of dividing a by b. Finally, it prints a goodbye message.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views1 page

Junk, Java

This Java program prompts the user to input two integer values, a and b. It then calculates and displays the result of dividing a by b. Finally, it prints a goodbye message.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

import [Link].

*;
import [Link];

class Junk
{
public static void main(String args[])
{
int a, b;
Scanner s = new Scanner([Link]);

[Link]("Enter the a value:");


a = [Link]();

[Link]("Enter the b value:");


b = [Link]();

[Link]("The division is : " + (a/b));


[Link]("Bye");

}
}

You might also like