Sie sind auf Seite 1von 2

1.

Writeaprogramtofindareaofanequilateraltriangle
2.WriteaprogramtoprintthefirsttentermsoftheFibonacciSequenceassumingthefirsttwotermsas0and1

3.Writeaprogramtoreadtwonumbersandprintthesum,difference,productandquotientofthetwonumbers
4.WAPtoswapvaluesoftwovariablesusingthirdvariable.

5.WAPtoswaptwonumberswithoutusingathirdvariable.
6.WriteaprogramtoconvertthegiventemperatureindegreecentigradetoFahrenheitandviceversa.

7.Writeaprogramtoobtainrootsofsecondorderquadraticequationoftheformax+bx+c=0wherea,b,care
nonzero.
8.Writeaprogramtocheckwhetheragivennumberisaprimenumberornot

9.Writeasimpleprogramtodevelopasimplecalculatoranddisplaytheresultusingswitchstatement.
10.Writeaprogramtocomputea^busingrecursion.

11.Writeaprogramtodisplaythefollowingpatternaskinguserforno.ofrowstobeprinted.
*
**
***
**
*
12.Writeaprogramusingfunction,todisplayfirstnoddnumbers

13.Writeaprogramtoswaptwonumbersusingfunctions.
14.Writeaprogramtofindthesumofseriesusingfunction.

15.Writeaprogramfornestedstructure,thestructureisdeclaredwithinasinglestructure.Theinnerstructures
is:dob(fields:dd,mm,yy)andandtheouterstructureStudent(fields:rollno,name).
16.Writeaprogramtofindthenumberofvowelspresentinthestring

17.Writeaprogramtofindfrequencyofcharactersinastring.
18.WriteaprogramtoprintEmployeedetailslikeemp_id,emp_name,emp_salusingstructures.

19.Writeaprogramtoswaptwointegernumbersusingpointers.
20.Writeaprogramtoreadthemarksofastudentanddisplaygrade.

21.Writeaprogramtofindnumberofdigitsinauserenterednumber.
22.Writeaprogramtosortelementsofanarray(Bubblesort).

23.WriteaprogramtoAddTwoMatrixUsingMultidimensionalArrays.
24.WriteaprogramtocalculateFibonacciseriesusingrecursion.

25.WriteaprogramToComputeTheMultiplicationofTwoMatrices.
26.Writeaprogramtoknowno.ofoccurrencesofVowels,Consonants,Words,SpacesandSpecialcharacterin
givenstatement.

27.Writeaprogramthatwouldsortalistofnames(string)inalphabeticalorder.
28.Writeaprogramtostoreinformation(name,rollno.&marks)ofNstudentsusingstructure.

29.WAPtoconcatenatetwostringsusingpointer
30.Writeaprogramtofindthelargestelementinanarrayusingpointer.

31.Writeaprogramtocreateafilecalledemp.txtandstoreinformationaboutaperson,intermsofhisname,
ageandsalary.
32.WriteaprogramtocalculatetheGrosssalaryassumingdearnessallowanceis40%ofbasicsalary,houserent
allowanceis20%ofbasicandtravelingallowanceis12%ofthebasicsalary.

33.Writeaprogramtocalculatesumofmarksoffivesubjects&findtheaverageandthepercentage.
34.Writeaprogramtodemonstratestrcat(),strcmp(),strcpy()andstrlen()functionforagivenstringinput.

35.Writeaprogramtofindthelargestnumberinanarray
36.WAPreadaFILEandcountthenumberofcharacters,spacesandnewlinespresentinthefile.

37.Writeaprogramtoacceptasetofcharactersfromuseruntiluserpressesfullstop(.)andstoreitinatext
fileanddisplaycontentsoffile
38.WAPtofindwhetheragivenstringispalindromeornot

39.Writeaprogramtofindthesumof10integersinanarray.
40.WAPtoconvertthebinarynumbertoadecimalnumber

Das könnte Ihnen auch gefallen