0% found this document useful (0 votes)
27 views23 pages

CP 01

Uploaded by

surajtejra1921
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views23 pages

CP 01

Uploaded by

surajtejra1921
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

MADHAV INSTITUTE OF TECHNOLOGY AND SCIENCE GWALIOR

(A Govt. Aided UGC Autonomous Institute Affiliated to RGPV, Bhopal)


NAAC Accredited with A++ Grade

COMPUTER PROGRAMING LAB FILE

Submitted by

Rishabh Shrivas
(0901EE231111)

Under the guidance of


Professor Richa Sharma
(Assistant professor)

Department of Electrical Engineering

Session July- Dec 2023


• List of content

1. WRITE A PROGRAM TO CHECK WHETHER A NUMBER IS EVEN OR ODD.


2.WRITE A PROGRAM TO CHECK LEAP YEAR.
3.WRITE A PROGRAM TO FIND THE SUM OF FIRST N NATURAL NUMBERS.
4.WRITE A PROGRAM TO CONVERT STRING FROM LOWER TO UPPER CASE.
5.WRITE A PROGRAM TO FIND THE SUM OF ARRAY ELEMENTS.
6. WRITE A PROGRAM TO PRINT STRING USING POINTERS.
7.WRITE A PROGRAM TO SWAO TWO NUMBERS USING POINTERS. 8.WRITE A
PROGRAM TO READ THE FIRST LINE FROM A FILE.
9 WRITE A PROGRAM TO WRITE TEXT IN A FILE.
10.WRITE A PROGRAM TO CONVERT BINARY NUMBER TO DECIMAL NUMBER
1. write a program to check whether a number is even or odd.
• Output
2. Write a program to check leap year.
• Output
3.write a program to find the sum of first natural number.
• Output
4.write a program to convert string from lower to upper case.
• Output
5.write a program to find the sum of array elements.
6.write a program to print string using pointers.
• Output
7.write a program to swap two numbers using pointers.
• Output
8.write a program to read the first line from a file.
• Output
9.write a program to write text in a file.
• output
10.write a program to convert binary number to decimal number.
• Output

You might also like