Вы находитесь на странице: 1из 4

Lab 1 1. Write a C program to print ASCII value of a character.

2. Write a C program to convert temperature from Fahrenheit to Celsius


and vice versa.
3. Write a ​C Program to Compute Quotient and Remainder
4. Write a program to check whether a triangle is valid or not, when the
three angles of the triangle are entered through the keyboard. A triangle
is valid if the sum of all the three angles is equal to 180 degrees.
5. Given three points (x1, y1), (x2, y2) and (x3, y3), write a program to
check if all the three points fall on one straight line.
6. Given the coordinates (x, y) of a centre of a circle and it’s radius, write
a program which will determine whether a point lies inside the circle,
on the circle or outside the circle. (Hint: Use sqrt( ) and pow( )
functions)

Lab 2 1. Write a C program to print size of variables using sizeof() operator.


2. Write a ​C Program to multiply and divide a given number by 4 using
bitwise operators
3. Write a C program to find largest number among three numbers using
conditional operator.
4. Write a C program to find largest number among four numbers using
conditional operator.
5. Write a C program to demonstrate the bitwise and logical operators.
6. Write a C Program to calculate sum of 5 subjects and find percentage

Lab 3 1. Write a C program to swap two numbers using and without using 3​rd
variable.
2. Write a C program to Check Whether a Character is Vowel or
Consonant
3. Write a C program to check whether a person is eligible for voting or
not?
4. Write a C ​Program to check whether number is EVEN or ODD.
5. Write a C program to Find the Largest Number among Three Numbers
using nested if-else.
6. Write a C program to Check Whether a Number is Positive or Negative
Lab 4 1. Design and develop a Write a C program to read a year as an input and
find whether it is leap year or not. Also consider end of the centuries
2. Write a C program to find HCF and LCM​ of two numbers.
3. Write a C program to find sum of first N natural number, N must be
taken by the user.
4. Write a C program to Find Factorial of a Number
5. Write a C program to print occurrence of a particular digit in a number.
6. Write a C program to read an integer and print its multiplication table.

Lab 5 1. Write a C program to Display Characters from A to Z Using Loop


2. Write a C program to enter numbers until the user wants. At the end,
display the total number of positive, negative and zeros entered.
3. Write a C program to find the sum of individual digits of a positive
integer
4. Write a C program to check whether the entered number is palindrome
or not.
5. Write a C program to Check Armstrong Number
6. Write a C program to generate the first n terms of Fibonacci sequence

Lab 6 1. Write a C program to generate all the prime numbers between 1 and n,
where n is a value supplied by the user.
2. Write a C program to print the following pyramid pattern

* * 1 1 A
* * *** 2 2 2 3 B C
* * * ***** 3 3 3 4 5 6 D E F
* * * * *** 4 4 4 4 7 8 9 10 G H I J
* * * * * * 5 5 5 5 5 11 12 13 14 15 K L M N O

Lab 7 1. Write a C program to find Binary number of a Decimal number.


2. Write a C program to multiply two numbers using plus operator.
3. Write a C program to read weekday number and print weekday name
using switch
4. Write a C program to design calculator with basic operations using
switch
5. Write a C program to demonstrate the working of goto statement.
6. Write a C program to calculate the sum of array elements and find out
average.

Lab 8 1. Write a C program that invokes a function isprime(num) that accepts an


integer argument and returns 1 if the argument is prime, a 0 otherwise
2. Write a C program to Find Factorial of a Number Using Recursion
3. Write a C ​Program to create, initialize, assign and access a pointer
variable.
4. Write a C ​Program to swap two numbers using pointers.
5. Write a C ​Program to demonstrate example of double pointer (pointer
to pointer).
6. Write a C ​Program to demonstrate example of array of pointers.

Lab 9 1. Write a C program to Find Largest Element of an Array


2. Write a C program to ​reverse the element of an array ​into another array.
3. Write a C program to find the number of repeated element in an array.
4. Write a C program to perform swapping to two array.
5. Write a C program to replace all EVEN elements by 0 and Odd by 1 in
One Dimensional Array.
6. C Program to Copy all elements of an array into Another array

Lab 10 1. Write a C program to Read a Matrix and find Sum and Product of all
elements.
2. Write a C program to Add Two Matrix Using Multi-dimensional
Arrays
3. Write a C program to Multiply to Matrix Using Multi-dimensional
Arrays
4. Write a C program to Find Transpose of a Matrix
5. Write a C program to print lower diagonal of a matrix.
6. Write a C Program to Check whether Matrix is Magic Square or Not ?

Lab 11 1. Write a C programs that implements the Selection sort method to sort a
given array of integers in ascending order.
2. Write a C programs that implements the Bubble sort method to sort a
given array of integers in ascending order.
3. Write a C program to search a number in a list using Linear searching
Technique.
4. Write a C program to search a number in a list using Binary searching
Technique.
5. C Program to Delete duplicate elements from an array
6. Write a C program to Find the second Largest Element of an Array

Вам также может понравиться