0% found this document useful (0 votes)
55 views2 pages

Sec KProg List

The document lists various C programming lab programs including programs to calculate ASCII values, areas, square roots, vowel/consonant classification, largest of three numbers, leap years, uppercase/lowercase detection, roots of quadratic equations, sums of even/odd numbers, multiplication tables, palindrome detection, Armstrong numbers, number reversal, factor display, array average calculation, array maximum/minimum detection, array sorting, matrix addition/multiplication, string reversal, length calculation, concatenation, copying, consecutive letter checking, chessboard printing, hash pattern printing, function-based programs like multiplication, surface area calculation, array averaging, GCD calculation, array printing, decimal to binary conversion, swap without third variable, vowel counting, Fibonacci series

Uploaded by

Aditya
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)
55 views2 pages

Sec KProg List

The document lists various C programming lab programs including programs to calculate ASCII values, areas, square roots, vowel/consonant classification, largest of three numbers, leap years, uppercase/lowercase detection, roots of quadratic equations, sums of even/odd numbers, multiplication tables, palindrome detection, Armstrong numbers, number reversal, factor display, array average calculation, array maximum/minimum detection, array sorting, matrix addition/multiplication, string reversal, length calculation, concatenation, copying, consecutive letter checking, chessboard printing, hash pattern printing, function-based programs like multiplication, surface area calculation, array averaging, GCD calculation, array printing, decimal to binary conversion, swap without third variable, vowel counting, Fibonacci series

Uploaded by

Aditya
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/ 2

IP Lab Programs

1. C Program to Find ASCII Value of a Character.


2. C Program to find area of a triangle.
3. C program to find square root of a number using sqrt() function.
4. C Program to Check Whether a Character is Vowel or Consonant.
5. C Program to Find the Largest Number among Three Numbers.
6. C Program to Check Leap Year.
7. Write a C program to check whether a character is uppercase or lowercase alphabet.
8. Write a C program to find all roots of a quadratic equation.
9. C Program to print sum of all even & odd numbers up to n.
10. C Program to Generate Multiplication Table.
11. C Program to Check Whether a Number is Palindrome or not.
12. C Program to Check Armstrong Number.
13. C Program to Reverse a Number.
14. C Program to Display Factors of a Number.
15. C Program to Calculate Average of n (n < 10) numbers using arrays.
16. Write a program in C to find the maximum and minimum element in an array.
17. Write a program in C to sort elements of array in ascending order.
18. C Program to add two Matrices Using Multi-dimensional Arrays.
19. C Program to multiply two Matrices Using Multi-dimensional Arrays.
20. C Program to Reverse a String.
21. C Program to Find the Length of a String.
22. C program to Concatenate Two Strings.
23. C Program to Copy a String to another character array.
24. C program to check whether a string has two consecutive same letters or not. For e.g.
“Deer”, “Soon”, “Moon”, “Coordinate”, “Giraffe” etc.
25. C program to print the chess board of .
# # # #
# # # #
# # # #
# # # #
# # # #
# # # #
# # # #
# # # #

26. C program to print hash pattern series for pattern.


# 1 # 1 # 1 # 1
# 2 # 2 # 2
# 3 # 3
# 4
Programs based on functions
27. Multiply two numbers using a function.
28. Find the Surface area of a Sphere using a function.
29. Take the average of the numbers in an array.
30. Write a C function to calculate the Greatest Common Divisor (GCD) of two numbers.
For e.g. GCD(24,30) = 3
24=2x2x2x3
30=2x3x5
31. Print the array using a function.
32. Convert a decimal number into a binary using a function.
33. Swap the values without using a third variable.
34. Count the number of vowels in a sentence.
35. Write a function to print Fibonacci series using a function.
36. Write a function that will separate the odd digits from a number and print the
number obtained after multiplying it by 10.
For e.g. n=128151290 ; en=1119 = 11190

Programs on Pointers
37. Print the address of the declared pointer.
38. Assign a value to the base address of the pointer of an array.
39. Print the value of the base address of the pointer. E.g. a[4], 4[a] etc.
40. Swap the values of the two variables using pointers.

You might also like