Uploaded by mondalkajol960

Problem Solving in C Language with Code Editor

advertisement
An Assignment
On
C Programming Problems
Course Name: Fundamentals of Programming & Database Management
Course Code: 2202
Submitted To:
Manan Binth Taj Noor
Assistant Professor,
Institute of Information & Technology
Jahangirnagar University
Submitted By:
Kajal Mondal
Roll: 1778, Reg: 20193250038
2nd Year 2nd Semester
Department of Accounting & Information Systems
Jahangirnagar University
Date of submission: January 29, 2022
1. Write a C program to enter two numbers and find their sum?
Solution:
2. Write a C program to enter two numbers and perform all arithmetic operations?
Solution:
3. Write a C program to enter length and breadth of a rectangle and find its
perimeter?
Solution:
4. Write a C program to enter length and breadth of a rectangle and find its area?
Solution:
5. Write a C program to enter radius of a circle and find its diameter, circumference
and area?
Solution:
6. Write a C program to input month number and print number of days in that
month?
Solution:
7. Write a C program to input marks of five subjects Physics, Chemistry, Biology,
Mathematics and Computer. Calculate percentage and grade according to
following: Percentage >= 90%: Grade A Percentage >= 80%: Grade B Percentage
>= 70%: Grade C Percentage >= 60%: Grade D Percentage >= 40%: Grade E
Percentage < 40%: Grade F ?
Solution:
8. Write a C program to print all odd number between 1 to 100?
Solution:
9. Write a C program to print sum of all odd number between 1 to 100?
Solution:
10. Write a C program to find maximum between three numbers using conditional
operator?
Solution:
Reference Code Editor: OnlineGDB
Download