You can just put “/“ to represent dividing
Write "i" the write random words then delete it and add the lowercase i
"add-in" is pretty ambigious but I would go with true for this one.
The importance of a good work ethic in school and life. Your good work ethic tells future employers what they might expect from you on the job.
Answer:
The program in QBasic is as follows;
PRINT "Number: "
INPUT N
LET FACT = 1
FOR I = 1 TO N
FACT = FACT * I
NEXT I
PRINT FACT
END
Explanation:
This prompts user for number
PRINT "Number: "
This accepts input from the user
INPUT N
This initializes the factorial to 1
LET FACT = 1
This iterates through the number the user inputs and calculates its factorial
<em>FOR I = 1 TO N
</em>
<em> FACT = FACT * I
</em>
<em>NEXT I
</em>
This prints the factorial
PRINT FACT
The program ends here
END