Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

SCHOOL OF COMPUTER SCIENCE AND ENGINEERING

B.SC – COMPUTER SCIENCE


FALL SEM 2018-2019
CSC1003 – PROGRAMMING FUNDAMENTALS LAB
ASSESMENT 2- DEAD LINE 07-08-2018

DECISION BRANCHING PROGRAMS

1. Write a C program to find the minimum between two numbers using conditional
operator.
2. Write a C program to find the maximum between three numbers.
3. Write a C program to input marks of five subjects’ physics, chemistry, biology,
maths, and computer science. Calculate the percentage and grade according to the
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
4. Write a C program to check whether number is odd or even using switch case.
5. Write a C program to print day of week name using switch case.

You might also like