Answer:
import random
print("Hello! I have a random number from 1 to 100! It is your job to try and guess it!")
number = random.randint(1,101)
guess = int(input("start to guess: "))
num_guesses = 1
while guess != number:
if guess > number:
print("lower")
guess = int(input("try again: "))
num_guesses +=1
elif guess < number:
print ("higher")
guess = int(input("start to guess: "))
num_guesses +=1
print("congrats it took you", num_guesses, "tries")
Explanation:
Answer:
#include <stdio.h>
int main(void) {
char letterToQuit = '?';
int numPresses = 0;
printf("Press the %c key %d times to quit ", letterToQuit, numPresses);
return 0;}
Explanation:
in print statement %c is replaced by value of variable 'letterToQuit'and %d is replaced by value of variable 'numPresses'
I say it is true
hope this helps!
Answer:
Explanation:
To convert larger units to smaller units (i.e. take a number of gigabytes and convert it down in to megabytes, kilobytes, or bytes) you simply multiply the original number by 1,024 for each unit size along the way to the final desired unit
Answer:
I do not know that answer