QBasic Programming

Input value in meter and convert into inch

REM PROGRAM TO CONVERT VALUE IN METER TO INCH
CLS
INPUT”ENTER VALUE IN METER”; M
I = M * 39.37
PRINT “VALUE IN INCH=”; I
END

USING SUB PROCEDURE
DECLARE SUB CONVERT(M)
CLS
INPUT”ENTER VALUE IN METER”; M
CALL CONVERT(M)
END

SUB CONVERT (M)
I = M * 39.37
PRINT “VALUE IN INCH=”; I
END SUB

USING FUNCTION PROCEDURE
DECLARE FUNCTION CONVERT(M)
CLS
INPUT”ENTER VALUE IN METER”; M
PRINT “VALUE IN INCH=”; CONVERT(M)
END

FUNCTION CONVERT (M)
I = M * 39.37
CONVERT = I
END FUNCTION

Input value in kilogram and convert into grams (Prev Lesson)
(Next Lesson) Calculate distance.[S=UT+1/2(AT2)]
Back to QBasic Programming
Notice: compact(): Undefined variable: limits in /home/bhimgautam34/public_html/wp-includes/class-wp-comment-query.php on line 853

Notice: compact(): Undefined variable: groupby in /home/bhimgautam34/public_html/wp-includes/class-wp-comment-query.php on line 853

No Comments

Post a Reply

Course Curriculum

error: Content is protected !!