<h2>6</h2>
The elements used in Qbasic:
- Character set.
- Variables.
- Constants.
- Operator and Operands.
- Expression.
- Statements.
Answer:
4 5 6
Explanation:
Since there is a do-while loop, you need to check the values for each iteration until the condition (Count <= X) is not satisfied.
First iteration -> Count = 1 and X = 3, Y = 1 + 3, Write Y -> 4
Second iteration -> Count = 2 and X = 3, Y = 2 + 3, Write Y -> 5
Third iteration -> Count = 3 and X = 3, Y = 3 + 3, Write Y -> 6
After the third iteration count is equal to 4 and X is equal to 3. That is why loop ends.
The answer is 326.
Range is found by subtracting the smallest number in the data set from the largest number.
Highest number: 419
Lowest number: 93
419-93
=326
(Next time make sure to post this under the Mathematics section.)
Answer:
Explanation:
Let's use Python for this. We will start prompting the user for input number, until it get 0, count only if it's positive:
input_number = Input("Please input an integer")
positive_count = 0
while input_number != 0:
if input_number > 0:
positive_count += 1
input_number = Input("Please input an integer")
print(positive_count)
Answer:
#include <stdio.h>
void first() {
printf("first\n");
}
void second() {
printf("second\n");
}
void third() {
printf("third\n");
}
int main() {
first();
second();
third();
printf("End of program.\n");
return 0;
}