Вы находитесь на странице: 1из 5

C PROGRAMMING LAB List of Experiments

1. Write a C program to find and output te roots of a gi!en


"uadrati# e"uation $it non%&ero #oeffi#ients.
'. Write a C program to simu(ate a simp(e #a(#u(ator tat
performs addition) su*tra#tion) mu(tip(i#ation) and di!ision
of integers. Error sou(d *e reported) if an+ attempt is made
to di!ide *+ &ero.
,. Write a C program to generate and print te first N
-i*ona##i num*ers.
.. Write a C program to find te GC/ and LCM of t$o
gi!en integers) and output te resu(ts.
0. Write a C program to re!erse a gi!en four%digit num*er
and #e#1 $eter te num*er is a pa(indrome or not.
2. Write a C program to find $eter a gi!en integer is
prime or not.
3. Write a C program to input N rea( num*ers in as#ending
order into a sing(e dimension arra+) #ondu#t *inar+ sear#
for a gi!en 1e+ num*er) and report su##ess or fai(ure.
4. Write a C program to sort a gi!en set of N student names
in a(pa*eti#a( order.
5. Write a C program to e!a(uate te po(+nomia( f6x7 8
a.x. 9 a,x, 9 a'x' 9 a1x 9 a: for a gi!en !a(ue of x) and
te #oeffi#ients using ;orner<s metod.
1:. Write a C program to read t$o matri#es A 6M x N7 and
B 6P x =7) and #ompute te produ#t of A.B after #e#1ing
#ompati*i(it+ for mu(tip(i#ation.
11. Write C user defined fun#tions a. to input N integer
num*ers into a sing(e dimension arra+
*. to #ondu#t (inear sear#
>sing tese fun#tions $rite a C program to a##ept N
integer num*ers and a gi!en 1e+ integer and #ondu#t (inear
sear#.
1'. Write C user defined fun#tions a. to input N integer
num*ers into sing(e dimension arra+
*. to sort te integer num*ers in as#ending order using
*u**(e sort te#ni"ue
#. to print te sing(e dimension arra+ e(ements
>sing tese fun#tions) $rite a C program to input N
integers num*ers into a sing(e%dimension arra+) sort tem
in as#ending order) and print *ot te gi!en arra+ and te
sorted arra+.
1,. Write C user defined fun#tions a. ?o input N rea(
num*ers into sing(e dimension arra+
*. to #ompute teir mean
#. to #ompute teir !arian#e
d. to #ompute teir standard de!iation
>sing tese fun#tions $rite a C program to input N rea(
num*ers into a sing(e dimension arra+) #ompute teir mean)
!arian#e) and standard de!iation.
1.. Write a C program to read a matrix A6M x N7 and
#ompute te fo((o$ing using user defined fun#tions@ a. Aum
of te e(ements of te spe#ified ro$
*. Aum of te e(ements of te spe#ified #o(umn
#. Aum of a(( te e(ements of te matrix
10. Write a C program using pointers to read in an arra+ of
integers and print its e(ements in re!erse order.
Note@ Minimum of 1, experiments to *e #ondu#ted.
B A(( te C programs to *e exe#uted using ?ur*o C or
simi(ar en!ironment.
Part%a
1.Program to find te root of te gi!en "uadrati# "uation
using s$it# #ase
'.Program to generate and print te first N -IBONACCI
num*ers
,.Program to find te GC/ and LCM of t$o integer
num*er
..Program tat re!erses a gi!en integer num*er and #e#1s
$eter te num*er is pa(indrome or not
0.Program to find $eter num*er is prime or not
2.Progrsm to fintd te mean)!arian#e and standard
de!iation
3.program to read t$o matri#es and perform addition and
su*tra#tion of t$o matrix
4.Program to read a string and #e#1 if pa(indrome or not
5.Prograam to find te fa#torria( of a num*er using
fun#tions
Part%*
1:.Program to find if a #ara#ter is a(pa*et or numeri# or
spe#ia( #ara#ters
11.Program to #ompute te sum of e!en num*ers and te
sum of odd num*ers using a fun#tion
1'.Program to find tra#e and noprm of a s"uare matrix
using fun#tions
1,.Program to a##ept a senten#e and #on!ert a(( (o$er#ase
#ara#ters to upper #ase and !i#e !ersa
1..Program toa##ept different goods $it te num*er)pri#e
and date of pur#ase and disp(a+ tem
10.Program to find (engt of a string $itout using te
*ui(t%in fun#tion
12.Program to find te re!erse of a dtring using pointers
13.Cop+ing te #ontents of one fi(e into anoter
Write a program to read gi!en num*ers and separate odd
and
e!en num*ers to different fi(es.
107Write a program to find num*er of !o$e(s and
#onsonants in te
gi!en text.
Write a Program to #on!ert te temperature in #entigrade
degree to te -areneit degree

Вам также может понравиться