Answer:
I will code in JAVA.
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
float x;
float y;
float result;
Scanner input = new Scanner(System.in);
while(true){ <em>//this is an infinite loop</em>
x = input.nextFloat(); <em>//wait the input for x</em>
y = input.nextFloat(); <em>//wait the input for y</em>
if(y == 0) {
continue; <em>//next iteration without print.</em>
} else{
result = x/y;
System.out.print(result); <em>//print the result.</em>
}
}
}
}
Explanation:
To get the numbers, you need to import Scanner class, and use the method nextFloat() to admit floats and integers.
If y is 0 then, executes the continue statement, if not prints the division between x and y.
The part of an algorithm which is repeated for a fixed number of times is classified as iteration.
Iteration is basically a repeated execution of the same set of instructions in sequence until a certain condition is met. For loop is the type of iteration in which a block of instructions repeated again and again for the fixed number of times. Upon completion of the previous iteration, the next iteration starts. The iteration process stops only when the given termination condition matches.
For example, this is the syntax of for loop:
for(initialize; condition; increment);
for (int num=0; num<5; num++)
In this for loop, iteration is carried out for 5 times, starting the value of num from 0 and repeatedly iterates with an increment of one in num until the value of num is less than 5 i.e. 4. This loop terminates once the value of num becomes 5 and, in result the condition num < 5 fails to match anymore.
Therefore, the part of an algorithm which is repeated for fixed number of times is classfied as iteration.
You can learn more about itreation at
brainly.com/question/28134937
#SPJ4
Answer:
write the time she arrived at the job and the time she left
Explanation:
Motherboard
processor
graphic card
memory
storage
power supply
sound card