Answer:
#include <iostream>
using namespace std;
/* Your code goes here */
int main() {
int input1, input2;
int result;
cin >> input1;
cin >> input2;
result = ComputeNum(input1, input2);
cout << result << endl;
return 0;
Explanation:
Answer:
Option c is the correct answer for the above question.
Explanation:
A loop is used to repeat some lines in some specific times which depends on some conditions of the loop. If a person wants to print "welcome" on 5 times then he can do this by two ways one is writing a print statement 5 times and the other is states a loop that executes 5 times through condition. The loop is described or written by three necessary points which are:-
- The fist is to initialize the initial value which tells the compiler for the starting point of the loop.
- The second is to any action for that condition variable which takes the loop for the direction of ending points.
- The third is a condition that defines the ending point of the loop.
The above question also states about the loop in which first and second points are given then the third point is necessary to complete the sentence which is states in option c. Hence the option c is correct while the other is not because--
- Option 'a' states about the class operator which is not the part of the loop.
- Option b states about the documentation plan which is also not the part of the loop.
import random
to_guess = random.randint(1, 1000)
count = 0
guess = 0
while guess != to_guess:
guess = int(input("Guess a number between 1 and 1000? "))
while guess < 1 or guess > 1000:
guess = int(input("Whoops, guess a number between 1 and 1000? "))
count += 1
if guess > to_guess:
print("Your guess is too high! Try a lower number.")
elif guess < to_guess:
print("Your guess is too low!. Try a higher number.")
print("You got it! The number is " + str(to_guess)+" and you got it in " + str(count) + " guesses!")
I hope this helps!
Answer:
Option C: Press Shift + F3 to access the Insert Function dialog box to look for a function that counts items.
is the correct answer.
Explanation:
As Alex wants to find a function that is capable of counting item reference numbers that he is inserting into a spread sheet, so she should:
- Press Shift + F3
- This key would present a dialogue box on the screen.
- The dialogue box will have the option that will search for the functions inserted.
- Item counting function will be inserted into the dialogue box and press ok.
All other options will not help Alex in the respective manner.
<h2> hope it will help you!</h2>