Professional Documents
Culture Documents
Q1. Write A User Defined Function To Add 2 Numbers and Display Their Sum
Q1. Write A User Defined Function To Add 2 Numbers and Display Their Sum
RESULT:-
Q2.Write a program using a user defined function
that displays sum of first n natural numbers,
where n is passed as an argument.
RESULT:-
RESULT:-
Q4. Write a program using user defined
function that accepts length and breadth of a
rectangle and returns the area and perimeter of
the rectangle.
RESULT:-
Q5. Write a program to copy the entire content
from the file data.txt to story.txt.
RESULT:-
RESULT:-
Q8.Write a program to count only those lines
from text.txt which are starting from
alphabets “T” or “M”
RESULT:-
Q9.Write a program to read the content
from the file file.txt and display all
numbers.
Q10.Write a menu driven program which
shows all operations on (a)binary file
(b)Add Record
(c)Display all Record
d)Display specific Record