Table of Contents
Questionnaire for C programming
- C program to find the greatest number among three numbers.
- C program to find out whether a given year is a leap year or not.
- C program to convert temperature from Fahrenheit to Celsius and Celsius to Fahrenheit.
- C program to check sign of a given number.
- C program to check whether triangle is equilateral, scalene or isosceles.
- C program to check whether the triangle is valid or not if sides are given.
- C program to enter student marks and find percentage and grade. A college has the following rules for grading system:1. Below 25 – F
2. 25 to 45 – E
3. 45 to 50 – D
4. 50 to 60 – C
5. 60 to 80 – B
6. Above 80 – Ask the user to enter mark of 5 subjects and print the corresponding grade.
- Write a C program to input basic salary of an employee and calculate gross salary according to given conditions.
Basic Salary <= 10000 : HRA = 20%, DA = 80%
Basic Salary is between 10001 to 20000 : HRA = 25%, DA = 90%
Basic Salary >= 20001 : HRA = 30%, DA = 95%
- C program to print all natural numbers from 1 to n using while loop.
- C program to print natural numbers in reverse from n to 1 using while loop.
- C program to print alphabets from a to z using while loop.
- C program to print all odd numbers from 1 to n using for loop.
- C program to print multiplication table of a given number using for loop.
- C program to print multiplication table from 1 to 5 using Nested loop.
- Program to add numbers until the user enters zero using do..while loop.
- C program to find factorial of a number.
- C program to find all factors of a number.
- C program to check whether a number is palindrome or not.
- C program to reverse order of words in a string.
- C program to count frequency of digits in an integer.
- C program to count number of digits in an integer.
- C program to swap first and last digit of a number.
- Merge two arrays of same size sorted in descending order.
- Count the frequency of each element of an array.
- Sort elements of array in ascending order.
- Insert New value in the array (sorted list).
- Delete an element at desired position from an array.
- Addition of two Matrices.
- Multiplication of two Matrices.
- Transpose of a Matrix.
- Find the missing number from a given array.
- Find two elements whose sum is closest to zero.
- Program in C to demonstrate how to handle the pointers in the program.
- Program to add two numbers using call by reference.
- Generate permutations of a given string.
- Store and retrieve elements from an array.
- Calculate the length of the string.
- Find the factorial of a given number.
- Sort an array using pointer.
- Show a function returning pointer.
- Sum of all elements in an array.
- Print all the alphabets.
- C program to find all roots of a quadratic equation using switch case.
- C program to create calculator using switch case.
- Consider the following program which the user to type his own ID, if the ID is valid it will ask him to enter his password, if the password is correct the program will print the name of the user, otherwise, the program will print Incorrect Password and if the ID does not exist , the program will print Incorrect ID.
- Program to Store Information of a Student Using Structure.
- Program to Add Two Distances (in inch-feet system) using Structures.
- Program to Add Two Complex Numbers by Passing Structure to a Function.
- Program to Calculate Difference Between Two Time Periods.
- Program to Store Information of Students Using Structure.
- Program to Store Data in Structures Dynamically.