CLS
INPUT "Enter the length"; L
INPUT "Enter the breadth"; B
A = L*B
PRINT "Area of rectangle="; A
END
Friday, October 4, 2019
Qbasic to print area of circle
CLS
INPUT "Enter the radius"; R
A = 22/7*R^2
PRINT "Area of circle="; A
End
INPUT "Enter the radius"; R
A = 22/7*R^2
PRINT "Area of circle="; A
End
Qbasic to print area of trangLe
ClS
INPUT "Enter base"; B
INPUT "Enter height"; H
A = 1/2*B*H
PRINT "Area of triangle="; A
END
INPUT "Enter base"; B
INPUT "Enter height"; H
A = 1/2*B*H
PRINT "Area of triangle="; A
END
Qbasic to print area of 4 walls
CLS
INPUT "Enter the length"; L
INPUT "Enter the breadth"; B
INPUT "Enter the height"; H
A = 2*H*(L+B)
PRINT "Area of four walls="; A
END
INPUT "Enter the length"; L
INPUT "Enter the breadth"; B
INPUT "Enter the height"; H
A = 2*H*(L+B)
PRINT "Area of four walls="; A
END
Qbasic to print volume of box
CLS
INPUT "Enter the length"; L
INPUT "Enter the breadth": B
INPUT "Enter the height"; H
V = L*B*H
PRINT "Volume of box="; V
END
INPUT "Enter the length"; L
INPUT "Enter the breadth": B
INPUT "Enter the height"; H
V = L*B*H
PRINT "Volume of box="; V
END
Subscribe to:
Posts (Atom)
Peer to Peer Network
Peer to Peer Network Peer-to-Peer is a network model in which each computer can function as both a client and a server. Any computer in th...
-
Peer to Peer Network Peer-to-Peer is a network model in which each computer can function as both a client and a server. Any computer in th...
-
MY EXPERIENCE ON OUR. EDUCATIONAL TOUR We all students were really excited for tour when we got notice on Sunday which was t...
-
My Father My father name is Sujan Ram Bhattarai. He is 40 years old. He is a gentle man. A father is a...