0% found this document useful (1 vote)
74 views

C Practical File - Index

The document is an index of lab tasks for programming in C, detailing various exercises such as checking age, translating weekdays, calculating factorials, and working with matrices. Each task is numbered and includes specific programming objectives, such as using user-defined functions and structures. The tasks range from basic input/output operations to more complex data handling and graphics.

Uploaded by

sagarmayank29
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
74 views

C Practical File - Index

The document is an index of lab tasks for programming in C, detailing various exercises such as checking age, translating weekdays, calculating factorials, and working with matrices. Each task is numbered and includes specific programming objectives, such as using user-defined functions and structures. The tasks range from basic input/output operations to more complex data handling and graphics.

Uploaded by

sagarmayank29
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Index

Sr. No. Lab Task Page No.


Write a program in C to accept the age of a person and check whether he is an adult
1
or minor.
Write a program in C to input the number of weekday (1-7) and translate to its
2
equivalent name of weekday.
3 Write a program in C to accept a number and print the table of that number.
Write a program in C to input Name, Roll Number, Class, Section and marks in
4 three subjects of a student and calculate total and percentage of marks. Print all
details on the screen.
Write a program in C to accept a number and print the sum of its digits. Create a
5
user-defined function to calculate the sum of digits of the number.
Write a program in C to accept a number and print the factorial of that number.
6
Create a recursive function to calculate the factorial of a number.
Write a program in C to accept 10 numbers in an array and print smallest and
7
largest number among them.
Write a program in C to accept elements of a matrix and print transpose of that
8
matrix.
Write a program in C to accept elements of a matrix and print boundary elements of
9
that matrix.
Write a program in C to accept elements of a matrix and print both diagonals of that
10
matrix.
11 Write a program in C to accept a string and check whether it is palindrome or not.
Write a program in C to accept 5 records with the structure-
struct Person
{
char name[20];
12
int age;
char city[20];
};
Display the name and city of the eldest one.
Write a program in C to accept one record with the union-
struct Result
{
int marks;
13
char grade;
float per;
}
Print all details on the screen.
14 Write a program in C to copy the content of a file to another file.
15 Write a program in C to draw a hut.

You might also like