Answer:
while True:
number = int(input("Enter a number: "))
product = number * 10
if product > 100:
break
print(str(product))
Explanation:
Create a while loop that iterates until a specific condition is created inside
Ask the user for the input
Multiply the input and put the result in product
Check if the product is greater than 100. If it is, stop the loop using break keyword
When the loop is done, print the product
Answer:
The code is not dereferencing the pointers. You have to place an asterisk in front of the pointer to read the value the pointer points to.
Explanation:
So "if (str1 != str2)" must be "if (*str1 != *str2)".
likewise:
while (*str1 != 0 && *str2 != 0)
and
result = (*str1 == *str2);
FB, I would guess.
Sincerely,
Xeno