0% found this document useful (0 votes)
2 views5 pages

C Programs

Uploaded by

Ritesh Kolate
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)
2 views5 pages

C Programs

Uploaded by

Ritesh Kolate
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/ 5

1. Draw following pattern using c.

*****

****

***

**

2. Design calculator by using switch case.

1) Addition 2) Multiplication 3) Division 4) Subtraction

3. Implement a C program to find out vowels and display count of it.

4. Implement a c program to find

a) Entered number is positive or negative.

b) Entered number is prime or not.

c) Entered number is odd or even.

5. Write a program to find out a) square of number b) area of rectangle using function.

6. Write a program for matrix addition using two dimensional arrays.

7. Calculate interest by using parameterized function.


8. Write a c program to print largest and second largest number in array.

9. C program to find largest from three numbers given by user (without using array).

10. Write a program to print table of number entered by user.

11. Take any string from user. Perform following operations in string.

a) Calculate length of string

b) Concatenate the string with other string

c) Reverse the given string

12. Take any string from user. Perform following operations in string.

a) Convert given string to lowercase string

b) Convert given string to uppercase string.

c) Compare given string with another string.


13. Write c program to copy contents of file to another file.

14. Write a c program that implement stack.

15. Write a c program that implement queue.

16. Write a c program that implement linked list.

17. Take information of two employees from user and display this information.

18. Write a program to swap variables using function

a) Using third variable

b) without using third variable

19. Write a program to print Fibonacci series

a) Using Recursion

b) Without using Recursion


20) Write a program to print following pattern

**

***

****

You might also like