Solve it...............
Attachments:
Answers
Answered by
2
- Write a QBASIC program to enter a number and find the factorial of that number.
CLS
REM "Factorial Program in QBASIC"
INPUT "Enter a number: "; A
F=1
FOR I=1 TO A
F=F*I
NEXT I
PRINT "The factorial of the given number is: ";f
END
- Write a program in QBASIC to find whether a number is prime or not.
- Write a program in QBASIC to find the largest among 3 numbers.
- Write a program in QBASIC to find Simple Interest.
Similar questions