Ibrahim Index
Ibrahim Index
FOR LOOP
1 Write a program in C to display ‘n’ terms of natural number and
their sum.
2 Write a program in C to read 10 numbers from keyboard and find
their sum and average.
3 Write a program in C to display the cube of the number up to given
an integer.
4 Write a program in C to display the multiplication table of a given
integer.
5 Write a program in C to display the multiplication table vertically
from 1 to n.
While loop
6 Write a program to find the factorial value of any number entered
through the keyboard.
7 C program to print all lowercase alphabets using while loop.
IF ELSE Statement
8 Write a C program to print ODD numbers from 1 to N using while
loop.
9 Write a C program to print EVEN numbers from 1 to N using while
loop.
10 Write a program to calculate overtime pay of 10 employees.
Overtime is paid at the rate of Rs. 12.00 per hour for every hour
worked above 40 hours. Assume that employees do not work for
fractional part of an hour.
11 Write a program to check whether the character which is input
through keyboard by user is
vowel or consonant.
12 Write a program to make a four function calculator by using switch
statement.
13 Enter masks of 5 students of 5 different subjects out of 100 write a
C program to print their
obtained marks out of 500, percentage and grades
Functions
14 Write a function to calculate the factorial value of any integer
entered through the
keyboard.
15 Write a function power ( a, b ), to calculate the value of a raised to
b.
16 Write a recursive function, to write a Fibonacci series.
Array
17 Write a program to find largest element of an array.
String
26 Write a program in C to print length of a string without using library
functions.
27 Write a program in C to compare two strings and print if they both
are
same or not and also print their length by using library functions.