Your main problem was declaring int prod in the while loop. This caused prod to be reset back to 1 every time the while loop ran.
Answer:
Following are the program in the Python Programming Language:
def check(num): #define function
if(num.isdigit()): #set if statement
return "yes"; #return yes if condition is true
else:
return "no";# return no if condition is false
string=input("Enter the numbers 0-9: ") #get input from the user
print(check(string)) #print and call the function
Output:
Enter the numbers 0-9: 1995
yes
Enter the numbers 0-9: 42,000
no
Explanation:
Here, we define a function "check()" and pass an argument in its parameter "num" inside the function.
- we set if-else conditional statement and check the value stored in the variable "num" is the digit by using built in function "isdigit()" then return "yes".
- Then, otherwise it return "no".
Finally, we get the input from the user in the variable "string" then, we call the function through "print()" function.
The fastest way to get help is to type a word or two in the search box. TRUE.
Answer: <u>EXE files are mainly used to indicate that the file is executable</u>
<u>MSI files show that the file is a Windows Installer</u>
<u />
Explanation:
EXE files are mainly used to indicate that the file is executable
MSI files show that the file is a Windows Installer
<u>MSI files are only used with launchers, EXE does not need to be used with launchers </u>
Hope this helped :)
A potential outcome for an author who uses a word without realizing its connotation is: A. she may write something that she does not mean.
<h3>What is
connotation?</h3>
Connotation refers to the quality, feeling or an idea which a word brings to the mind of a reader or listener, as well as its literal, dictionary or primary meaning.
This ultimately implies that, a potential outcome for an author who uses a word without realizing its connotation is that he or she may write something that she does not mean or pass across an information she didn't intend to.
Read more on connotation here: brainly.com/question/20236939
#SPJ1