You are on page 1of 1

1. The program takes in the marks of 5 subjects and displays the grade and total marks.

2. Write a program to find smallest and biggest number out of given 3 numbers.
3. Write a program to check whether the given number is in between 1 and 100
4. Write a program which calculates the tip in the restaurant according to the amount of the
bill, if the bill is less than 10$ the tip is $1.80. If the bill is between $10 and $60 the tip is
18% of the bill, if the bill is above $60 the tip is 20% of the bill.
5. Write a program to test the integer is even or odd. (use if-else)
6. Write a program that computes the following function, where x should be scalar.

7. Write a program to print the square root of the even integers up to n


2 1.4142
4 2.0000
6 2.4495
8. By using for loop and while loop, write a program for Fibonacci series of generating n
numbers? Use the command name as fib.

You might also like