Answer:
hi earlier u told me to answer ur question but i couldn't respond in the comments cos it said something went wrong
Explanation:
do i answer this question seriously or is this answer good?? srry im kinda dûmb T-T
Answer:
Syntax:
For variable_name As [Data Type] = start To end [ Step step ]
For variable_name As [Data Type] = start To end [ Step step ]
[ inner loop statements ]
Next.
[ Outer loop statements ]
Next.
Explanation:
The correct answer I believe is A Sex offender
Answer:
import java.util.Scanner;
public class Division {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter an integer");
int userNum = in.nextInt();
System.out.println("Enter the divisor");
int x = in.nextInt();
int first = userNum/x;
int second = first/x;
int third = second/x;
int fourth = third/x;
System.out.println(first+" "+second+" "+third+" "+fourth);
}
}
Explanation:
- In Java programming langauge use the scanner class to receive the values from the user (userNum and x)
- Carryout integer division of userNum/x to obtain the first number
- Repeat the sam step to obtain the second, third and fourth number
- Output the numbers to the user