C Prog Lab 1
C Prog Lab 1
Lab Assignment – 1
1. Display the grade of a student based on the marks. The grades are given
as follows
Marks >=90 - S grade
Marks 80 to 89 - A grade
Marks 70 to 79 - B grade
Marks 60 to 69 - C grade
Marks 55 to 59 - D grade
Marks 50 to 54 - E grade
Marks < 50 - F grade
If last two digits of your registration number represents your mark, then what is
your grade
code:
Output:
2. Write a program to find a three digit number is an Armstrong number or not.
Check whether, the last three digits of your registration number makes an
Armstrong number or not.
Code:
Output:
3. Write a program to find and print common elements of two integer arrays.
Code:
Output:
4. Write a program to find number of vowels present in your first name. Your
name can be entered as a string.
Code:
Output: