Computer Science, asked by athar99, 11 months ago

Write a Program to Find Square Root (in QBasic)

Answers

Answered by mdatharsharif
28

CLS

PRINT TAB(100); "Square Root Finder by Md Athar Sharif"

INPUT "Number to find Square Root"; N

A = N ^ (1 / 2)

PRINT "The Required Number is "; A

END

---------------

Hope it Helps!


athar99: Thanks. It is working.
Answered by madhura41
6
Heya ✌✌
Here is u r Ans ➡

✨The program the you have to write in Qbasic is

Rame Program To Display Square of An Input Numberclsinput "Enter Any Number";
NS= N^ 2 Print "Square of Number"; Send using sub Procedure.

Declare Sub Square (N) Clsinput "Enter Any Number"; Nclass Square (N) End

Sub Square (N)S = N^ 2 Print
"Square of Number"; Send sub using function Procedure Declare Function Square (N)Clsinput "Enter Any Number"; NS = Square (N) Print
"Square of Number"; Send
Function Square (N) SQ = N^2 Square = SQ End Function.

⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐

Hope This Helps u ☺.

athar99: Sorry I cant Understand the Coding. Are u sure it is for QBasic?
Similar questions