DEV Community

Akash
Akash

Posted on

Scenario Questions-variables,operators,functions,conditional statement.

11.Function to calculate total amount


output:

12.Function to greet user


output:

13.To convert Celsius to Fahrenheit


output:

14.Create a function that returns largest of two numbers


output:

  1. Conditional statement


output:

17.Check if number is positive,negative or zero


output:

18.Check if a year is leap year


output:

19.Movie ticket pricing


output:

20.Print grade using condition


output:

  1. Using function to calculate EMI for a loan(TBD)

Top comments (0)