Computer Science, asked by mohantyjoshna20, 7 months ago

Solve it...............​

Attachments:

Answers

Answered by anindyaadhikari13
2

\star\:\:\:\bf\large\underline\blue{Question:-}

  • Write a QBASIC program to enter a number and find the factorial of that number.

\star\:\:\:\bf\large\underline\blue{Source\:Code:-}

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

\star\:\:\:\bf\large\underline\blue{Similar\:Questions:-}

  1. Write a program in QBASIC to find whether a number is prime or not.
  2. Write a program in QBASIC to find the largest among 3 numbers.
  3. Write a program in QBASIC to find Simple Interest.
Similar questions