Lab Report in C Programm
Lab Report in C Programm
Faculty of Management
Lab Report
On
C Proagramming
Submitted By:
Aashish Joshi (TU Exam Roll No…)
(TU Reg. No: ……………….)
BIM 1 Semester
st
Submitted To
SUDURPASCHIMANCHAL CAMPUS
Department of Management
Bachelor of Information Management
Affiliated to Tribhuvan University
Dhangadh-2, Kailali, Nepal
March, 2025
pg. 1
Dhangadhi-2,
Kailali,Nepal
(Affiliated to TU)
Dhangadhi-2,
Kailali,Nepal
(Affiliated to TU)
Dhangadhi-2,
Kailali,Nepal
pg. 2
(Affiliated to TU)
Dhangadhi-2,
Kailali,Nepal
(Affiliated to TU)
Dhangadhi-2,
Kailali,Nepal
(Affiliated to TU)
pg. 3
Dhangadhi-2,
Kailali,Nepal
(Affiliated to TU)
Dhangadhi-2,
Kailali,Nepal
(Affiliated to TU)
Dhangadhi-2,
Kailali,Nepal
pg. 4
(Affiliated to TU)
Dhangadhi-2,
Kailali,Nepal
(Affiliated to TU)
Dhangadhi-2,
Kailali,Nepal
(Affiliated to TU)
pg. 5
Dhangadhi-2,
Kailali,Nepal
(Affiliated to TU)
Dhangadhi-2,
Kailali,Nepal
(Affiliated to TU)
Dhangadhi-2,
Kailali,Nepal
pg. 6
(Affiliated to TU)
Dhangadhi-2,
Kailali,Nepal
(Affiliated to TU)
Dhangadhi-2,
Kailali,Nepal
(Affiliated to TU)
pg. 7
Dhangadhi-2,
Kailali,Nepal
(Affiliated to TU)
Dhangadhi-2,
Kailali,Nepal
pg. 8
DECLARATION
I hereby declare that the project work entitled “C Programming” is a
general concept of programming software, original work done by me,
and this project work is submitted in the requirements for the award of
the degree of Bachelor first Semester. The results enrolled in the report
have not been submitted to any other university or institute for the
award of degree of BIM.
Name:-Aashish Joshi
pg. 9
KNOWLEDGEMENT
I would like to express a very special gratitude to my teacher
“parkashsaud” for his guidance throughout the project and as well as
to make able to get knowledge of programming langauge. As well as
special thanks to campus management team (BIM) for showering me
with this opportunity to make report on introduction to C-programming
lab work and for helping and research and providing knowledge about
our courses.
Yours sincerely-Aashsih Joshi
pg. 10
Q.N1) Write a program to display “SudurPashchimanchal Academy”
Ans:-
Output:-
pg. 11
Q.N2) WAP to find area of circle
Ans:-
Output:-
pg. 12
Q.N3) WAP to find volume of cylinder
Ans:-
Output:-
pg. 13
Q.N4) WAP to input temperature in Fahrenheit and convert into
Celsius.
Ans:-
Output:--
pg. 14
Q.N5) WAP to input 3 numbers and find their average
Ans:-
Output:-
pg. 15
Q.N6) WAP to two number find the cube of first number, square of
second number and then add those result to find the new result.
Ans:-
Output:-
pg. 16
Q.N7) WAP to input 3 numbers and find the middle number.
Ans:-
Output:-
pg. 17
Q.N8) WAP to input electricity units and find the billing amount as
follows:
Electricity Units Price Per Unit
For first 20 units Rs 0
For next 100 units Rs 12
For nect 100 units Rs 11
For above 220 units Rs 10
Ans:-
Output:-
pg. 18
Q.N9) WAP to input two numbers and then input the operator (+, -,
*, /) and find the result using switch.
ANS:-
Output:-
pg. 19
Q.N10) WAP to display all numbers 100 to 200 that end with 0 or 1.
Ans:-
Output:-
pg. 20
Q.N11) WAP to display the following series:
*
***
*****
*******
Ans:-
Output:-
pg. 21
Q.N12) WAP to display the following series:
5
45
345
2345
12345
Ans:-
Output:-
pg. 22
Q.N13) WAP to input a number and count the number of digits.
Ans:-
Output:-
pg. 23
Q.N14) WAP to display all prime numbers between 100 to 200.
Ans:-
Output:-
pg. 24
Q.N15) WAP to input numbers in an array of size ‘N’ and find the sum
of even and odd numbers separately.
Ans:-
Output:-
pg. 25