Create a sequential data file "Class.DAT" to store students name, class, roll no and section.
A sequential data file called "MARKS.DAT" contains roll no, name, English, Nepali, and maths fields. Write a program to display all the contents of the data files.
Write a program using SUB.....END SUB to get the radius of the circle and then print its area.
Write a program using FUNCTION... END FUNCTION to get a word from the user then prints the word in reverse.
Study the following program and answer the given question:
DECLARE FUNCTION diff (A,B)
CLS
INPUT"ENTER FIRST NUMBER;";A
INPUT"ENTER SECOND NUMBER;";B
PRINT"THE DIFFERENCE OF THE TWO NUMBERS=";diff (A,B)
END
FUNCTION diff (A,B)
END
FUNCTION diff(A,B)
D = A - B
DIFF = D
END FUNCTION
What is variable? Write different types of variables.
PathshalaNepal.com is a Registered Company of E. Pathshala Pvt Ltd Nepal. Registration number : 289280
© 2020. All right Reversed.E. Pathshala Pvt Ltd