You are on page 1of 2

C Programs

S. No. 1 2 3 4 5 6 7 8 Programs S. No. 1 2 3 4 5 6 7 8 Programs

Normal Programs Addition of two numbers Subtraction of two numbers Division of two numbers Multiplication of two numbers Remainder of two numbers Addition of three numbers Multiplication of three numbers Conditional Statements

Array (1D)
Insert 10 values in an array and print them Insert 10 values and find sum of all values Insert 10 values and find largest value Insert 10 values and find least value Insert 10 values and count even values Insert 10 values and count odd values Insert 10 values and search a given value

Array (2D)
1 2 3 4 Matrix addition Matrix multiplication Print transpose of a Matrix

1 2 3 4 5 6 7

Find greatest between two numbers Find least between two numbers Find greatest among three numbers Find least among three numbers Check a given number is prim of not Check a given year is leap or not

Using Function
1 2 3 4 5 6 7 Using Pointers All Normal programs All Programs Based on conditional statements All Programs based on Loops All Programs based on logics All Programs based on Array 1D All Programs based on Array 2D All Normal programs All Programs Based on conditional statements All Programs based on Loops All Programs based on logics All Programs based on Array 1D All Programs based on Array 2D

Loops
1 2 3 4 5 Print a table of a given number Print a reverse table of a given number Print prime numbers between 1 to 100 Check a given number is even or odd

Logics
1 2 3 4 5 6 7 8 9 10 11 12 Factorial of a given number Factorial of a given number (recursion) Fibonacci Series Area of a triangle Area of a rectangle Area of a square Area of a parallelogram Area of a circle Check a number is palindrome or not Check a number is Armstrong Check a year is Leap year or not Calculate the interest (using = p*n*r)/100

1 2 3 4 5 6 7

Structures/ Unions
1 2 3 4 Question 1(as given on next page) Question 2 (as given on next page)

13 14 15 16 17 18

Find sum of digits of a number Find number of digits of a number Reverse of a given number Swapping of 2 values (by 2 variables ) Swapping of 2 values (by 3 variables )

5 6 7

Question-1: Create a structure for the students of a class which will store the following information of the students name, course, year, sec, and roll. Create 10 objects using array 1. Display all the information of all the students 2. Display the name and roll number of all students 3. Find out total number of students in each course Question-2 Create a structure for the students of a class which will store the following information of the students roll, name, course, mark1, mark2, mark3 1. Display all the information of all the students 2. Display the name, mark1, mark2, mark3 of all students 3. Display the name and total marks of each students 4. Calculate how many have got 60% marks of more than 60% marks 5. Calculate how many have got 50% marks of less than 60% marks (i.e. fail)

You might also like