3 Jun 2024 Java - Tejal Class
3 Jun 2024 Java - Tejal Class
Scanner;
// Create a Scanner
remainingAmount = remainingAmount % 5;
// Display results
//3.8 Write a program that prompts the user to enter three integers and display the integers in non-
decreasing order.
import java.util.Scanner;
int x=0,y=0,z=0;
// Create a Scanner
int a=sc.nextInt();
int b=sc.nextInt();
int c=sc.nextInt();
x=a;
y=b;
z=c;
x=a;
y=c;
z=b;
x=b;
y=a;
z=c;
x=b;
y=c;
z=a;
x=c;
y=a;
z=b;
x=c;
y=b;
z=a;
//3.9 Write a program that prompts the user to enter the first 9 digits and displays the 10-digit ISBN
(including leading zeros). Your program should read the input as an integer.
import java.util.Scanner;
int Sum=0,m,d=9,x;
// Create a Scanner
long b=a;
while(b>0)
m=(int)b%10;
Sum=Sum+(m*d);
d--;
b=b/10;
x=Sum%11;
if(x==10)
else