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
Friday, October 4, 2019
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
Qbasic to print volume of cylinder
CLS
INPUT "Enter the radisu"; R
INPUT "Enter the height"; H
V = 22/7*R^2*H
PRINT "Volume of cylinder="; V
END
INPUT "Enter the radisu"; R
INPUT "Enter the height"; H
V = 22/7*R^2*H
PRINT "Volume of cylinder="; V
END
Qbasic to check no is positive,negative or zero
CLS
INPUT "Enter any number"; N
IF N>0 THEN
PRINT "The number is positive"
ELSEIF N<0 THEN
PRINT " The number is negative"
ELSE
PRINT "The number is zero"
END IF
END
INPUT "Enter any number"; N
IF N>0 THEN
PRINT "The number is positive"
ELSEIF N<0 THEN
PRINT " The number is negative"
ELSE
PRINT "The number is zero"
END IF
END
Qbasic to check no is odd or even
CLS
INPUT "Enter any number"; N
IF N MOD 2 = 0 THEN
PRINT "The number is even"
ELSE
PRINT "The number is odd"
END IF
END
INPUT "Enter any number"; N
IF N MOD 2 = 0 THEN
PRINT "The number is even"
ELSE
PRINT "The number is odd"
END IF
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...