20 views

Uploaded by Bibekananda Datta

C language problem sheet.

C language problem sheet.

Attribution Non-Commercial (BY-NC)

- Excel Functions for Finance Pfofessionals
- Mathworks Interview Questions
- AD2012.pdf
- C# Cheat Sheet
- Problem Solving and Python Programming Assignment - III
- ed076p610.2.pdf
- Programming in C
- Woodhouse AA 1981 SEA
- cpp
- Assignment 1
- Part 8 - Recursive Identification Methods
- 265 Homework 7
- grade 8 sorico math unit 1 2 2013-2014
- 01 Function
- 1.6 Trigonometric Functions
- Economics FinIns Interview Test Programmes
- 01 Function
- MAT 222 Intermediate Algebra Complete Class
- Syllabus
- Code Analysis Paper

You are on page 1of 2

1. Write an interactive program to demonstrate the process of multiplication. The program should ask the user to enter two two-digit integers and print the product shown below: Input: 45 37 45 X 37 7 X 45 is 315 3 X 45 is 1350 Adding them 1665 2. Write down a program that can take two numbers (a, b) as input and find out the addition (a+b), subtraction (a-b), multiplication (a*b) and division (a/b) of two numbers. (also do this with function calling) 3. Write down a program that can take the radius of a circle and find out its Area. (You must use the symbolic constant). (also do this with function calling) 4. Write down a program that can take the base and height of a triangle and then find out its Area. (also do this with function calling) 5. Write a program which will take seconds as input and show years, months, days, hours, minutes and seconds as output. (use long int for taking input) 6. Write a program which will take Celsius temperature as input and give Fahrenheit as output. (try some other unit conversion problems) Output

1. Write a program which will take 4 numbers as input from the user and return which is largest among them. Do it using functions.

2. Write a function named area to calculate the area of a triangle. The function accepts the six coordinate points (x1, y1, x2, y2, x3, y3). The function area will call another function named arms to calculate the lengths (a, b, c) of the three arms of the triangle using corresponding coordinates. Then using the values a, b, and c function area will calculate the area. 3. ***Do the problems (which can be done) in doc-2 using function calling. Such as, to check a number is prime or not, take input from the user in main function then pass the value to another function namely prime_check to check whether it is prime or not. And in case of series evolution problems, take the value of x and n (according to

Bibekananda Datta, MechE, BUET 2013 https://sites.google.com/site/bibekanandadatta

necessity) and pass them to another function name sum_up (also make functions namely power and factorial, if necessary) to evaluate the sum. In case building structure, take line number as input from the user in main function and then pass it to another function to print the structures on the computer screen. 4. ***Do the problems (which can be done) in doc-3 using function calling. Such as to add/transpose the matrix pass matrix/matrices to another function which will add them/transpose it. In case of string problems, it is preferred to build your own function without using library functions (not in all case, in most of the cases). 5. Write a program which will take number as input and find its factorial value using recursive call. 6. Use recursive call to evaluate the series in doc-2. 7. Evaluate nCr or nPr by using recursive function. 8. Write a program which will take two numbers as input and swap them by using pass by reference protocol.

- Excel Functions for Finance PfofessionalsUploaded byAnonymous zCIiMKjZc
- Mathworks Interview QuestionsUploaded byArnav Mendi
- AD2012.pdfUploaded bygilmarsucre
- C# Cheat SheetUploaded byAnon
- Problem Solving and Python Programming Assignment - IIIUploaded bybhuvangates
- ed076p610.2.pdfUploaded byAnonymous 3bPn1WcuYV
- Programming in CUploaded bykukugudu
- Woodhouse AA 1981 SEAUploaded byatpeplow
- cppUploaded byVivek Padhye
- Assignment 1Uploaded byNaveed Ashraf
- Part 8 - Recursive Identification MethodsUploaded byFarideh
- 265 Homework 7Uploaded byVannevar
- grade 8 sorico math unit 1 2 2013-2014Uploaded byapi-233707670
- 01 FunctionUploaded byVivianne Yong
- 1.6 Trigonometric FunctionsUploaded byAbdulmajid Osman
- Economics FinIns Interview Test ProgrammesUploaded bySurahman Jahizah
- MAT 222 Intermediate Algebra Complete ClassUploaded bygeorgettashipley
- 01 FunctionUploaded bysoon siew lee
- SyllabusUploaded byZahid DarkInvader
- Code Analysis PaperUploaded byJoseph Pinedo
- Class 12 Cbse Maths Sample Paper 2012-13 Model 1Uploaded bySunaina Rawat
- Excel FunctionsUploaded byBaljeet Oberoi
- MTH141 Syllabus Spring 2011Uploaded byschreckk118
- ExcelArrayFormulaSeries1-14FinishedUploaded bynauli10
- 1568933594Uploaded byMEGA_ONE
- Solution-Manual-for-Precalculus-2nd-Edition-by-Young.pdfUploaded bya479402078
- diseño2Uploaded byMaciel Ramirez
- 04 CSC335 Chapter10b(Recursion Part 1)Uploaded byfrankjamison
- Football Teams ManagmenetUploaded bykuwaiti27
- c Programming Notes Unit-1Uploaded bydineshgomber

- Program ListUploaded byTanvir Shovon
- SOLUTION Assignment # 7Uploaded bysaahil-ahmed-8043
- Chapter 6Uploaded byJean Rene
- Lateral Thinking PuzzlesUploaded byShobana Jayaraj
- Phys Mod Mat LabUploaded byhawar2011
- ESc101 S 10 RecursionUploaded byAnushank Jain
- Non RecursiveUploaded bySathis Kumar
- 4.MathematicaProgrammingUploaded byMohamad Abdallah
- fortran guideUploaded byAhmed Siddique
- 03 Measuring Runtime and PseudocodeUploaded byChengwei Joe Dai
- [Sept 2014] Fat 0015 Fundamental of Programming i (1)Uploaded bydaarshaan
- MIT6_034F10_assn0Uploaded byAnmolbudugutta Budugutta
- Fibonacci Series in c Using Recursion PDFUploaded byJenna
- M4 Macro LanguageUploaded byPel Gy
- math-2015-0069Uploaded byAnonymous bk7we8
- c lab manual for jntuk r10 first sem I yearUploaded byLiyaquath Ali Syed
- Binomial Theorem and Pascal Triangle upUploaded byathaliumarie
- c++ programs for chemical engineeringUploaded byGokul Kadam
- Probability CalculationUploaded byEthan
- Combinations and PermuationsUploaded byaustinfru
- Excel FormulaUploaded bygirja28
- SMARANDACHE NOTIONS (book series), Vol. 8Uploaded byAnonymous 0U9j6BLllB
- MAT216 Chapter VUploaded bywbowen92888
- Especial FunctionsUploaded byjanderson13
- Maxima ManualUploaded byFrancesco Ruggiero
- COMPRG2 - Laboratory ExercisesUploaded byjocansino4496
- Functional Programming in C#Uploaded byigogin
- 11-IPUploaded byvikas_2
- Fundamental Principles of CountingUploaded bySivaprakasam Karthikeyan
- C++ worksheetUploaded byAddisu Dagne