0% found this document useful (0 votes)
6 views

PSP Lab Programs

The document lists 30 programming problems to be solved in C, covering a range of topics including basic arithmetic operations, control structures, data structures, and file handling. Each problem is designed to enhance programming skills through practical implementation. The tasks include swapping numbers, calculating factorials, working with arrays, and file operations.

Uploaded by

unanimoushacker3
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

PSP Lab Programs

The document lists 30 programming problems to be solved in C, covering a range of topics including basic arithmetic operations, control structures, data structures, and file handling. Each problem is designed to enhance programming skills through practical implementation. The tasks include swapping numbers, calculating factorials, working with arrays, and file operations.

Uploaded by

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

PSP Lab Problems

1. Write a C program to swap two numbers a) using temporary variable b) without using
temporary variable
2. Write a C program to convert temperature from degree celsius to fahrenheit
3. Write a C program to find biggest of 3 numbers using conditional operator
4. Write a C program to print ASCII values of all alphabets.
5. Write a C program to fond the roots of quadratic equation
6. Write a C program to implement a basic calculator that can perform addition, subtraction,
Multiplication, division, and modulus operations using switch case.
7. Write a C program to print the multiplication table of a given integer.
8. Write a C program to calculate the power of a number.
9. Write a C program to find the sum of squares of the first n natural numbers.
10. Write a C program to check if a given year is a leap year or not.
11. Write a C program to print all prime numbers between 1 and 100.
12. Write a C program to convert a given decimal number to binary.
13. Write a C program to check the given number is palindrome number or not.
14. Write a C program to find the factorial of a given number.
15. Write a C program to print fibonacci series up to given number
16. Write a C program to find sum of its digits of a number
17. Write a C program to check given number is Armstrong number or not
18. Write a C program to find sum of its digits of a number
19. Write a C program to find gcd of two numbers.
20. Write a C program to print floyd’s triangle
21. Write a program to find the largest and smallest element in an array.
22. Write a program to multiply two matrices.
23. Write a program to reverse a string without using string handling function
24. Write a program to compute the nth Fibonacci number using a recursive function.
25. Write a program to compute the x power y using a recursive function.
26. Write a program to store and display information of n students using array of structures.
27. Write a program to add two Complex numbers using structures.
28. Write a program to demonstrate the use of unions.
29. Write a program to write data to a file.
30. Write a program to copy contents of one file to another.

You might also like