Professional Documents
Culture Documents
in
Certificate
Shri _________________________________________________________
Index
Basic Programs
Arithmetic
6 Write a program that reads two nos. from key board and gives their addition, subtraction,
multiplication, division and modulo.
7 Write a C program to find the percentage of five subjects.
8 Write a C program to find simple interest.
9 Write a C program to calculate temperature from Centigrade () to Fahrenheit ().
10 Write a C program to calculate perimeter and area of square.
11 Write a C program to calculate area of triangle.
12 Write a C program to calculate area of circle.
13 Write a C program to calculate the length of diagonal using Pythagoras theorem.
14 Write a C program to convert days into years, months and days.
15 The distance between two cities (In KM) is input through key board. Write a program to
convert and print this distance in meters, feet, inches & centimeters.
Decision Making
Looping
Function
43 Write a calculator program (add, subtract, multiply, divide). Prepare user defined function for
each functionality.
44 Write a function program to add first N numbers.
45 Write a function find out maximum out of three numbers.
46 Write a function power that computes x raised to the power y for integer x and y and returns
double type value.
47 Write a program to find factorial of a number.
48 Write a program to find factorial of a number using recursion.
49 Write a program that used user defined function multiplication ( ) that performs
multiplication of two numbers by recursion.
50 Write a function prime that return 1 if its argument is prime and return 0 otherwise.
51 Write a program to initializes an integer array (1-D & 2-D) with values and prints the array in
tabular format.
52 Write a program to read 1-D array and modify its content as per user choice.
53 Write a program to calculate the sum of all the element of the array.
54 Write a program to find the maximum value from all the element of the array.
55 Write a program to illustrate the use of getchar() and putchar().
56 Write a program to illustrate the use of gets() and puts().
57 Write a program to convert the string from lower case to upper case and vice versa as per
user choic.
58 Write a program to compare two strings.
59 Write a program to join or concatenate two strings.
60 Write a program to copy one string to another string.
61 Write a program to count the frequency of occurrence of any character specified by user.
62 Write a program to count the number of words in given string.
63 Write a program to find the length of string.
64 Write a program to reverse a string.
65 Write a program to check for palindrome string.
Structure
66 Define a structure type, personal, that would contain person name, date of joining and salary.
Using this structure, write a program to read this information for one person from the key
board and print the same on the screen.
67 Define a structure called cricket that will describe the following information:
a. Player name
b. Team name
c. Batting average
68 Write a function to enter rollno, marks of the three subjects for 3 student and find total
obtained by each student.
69 Define a structure type, book that would contain name of book, name of author, name of
publication, date of publication and price. Using this structure, write a program to read this
information from the key board and print the same on the screen.
70 Define a structure type, employee that would contain name of employee, name of
department, position, date of joining and salary. Using this structure, write a program to read
this information from the key board and print the same on the screen.
Pointer
Miscellaneous