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

Ibrahim Index

Computer lab index

Uploaded by

ibrahim031222
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Ibrahim Index

Computer lab index

Uploaded by

ibrahim031222
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Index

s.no Task Page


no

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.

18 Write a program to arrange elements of an array in ascending and


descending order.
19 Write a program to arrange elements of an array in an ascending
order.
20 Write a program to arrange elements of an array in an descending
order.
21 Write a program in C to copy the elements of one array into another
array.
22 Write a program in C to enter the elements of a matrix and print the
matrix.
23 Write a program in C to enter the elements of two matrix and add
them print their sum in form of new matrix.(pass values of matrices
into a function)
24 Write a program in C which performs the following tasks:
 Initialize an integer array of 10 elements in main( )
 Pass the entire array to a function modify( )
 In modify( ) multiply each element of array by 3
 Return the control to main( ) and print the new array elements in
main( )
25 Write a program in C to get the largest element of an array using the
function.

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.

You might also like