|
| 1 | +# Go Programming Exercises: if else statements |
| 2 | +- [Program to find maximum between two numbers](max_of_two_numbers.go) |
| 3 | +- [Program to find maximum between two numbers using functions](max_of_two_numbers_using_functions.go) |
| 4 | +- [Program to find maximum between three numbers](max_of_three_numbers.go) |
| 5 | +- [Program to find maximum between three numbers using functions](max_of_three_numbers_using_functions.go) |
| 6 | +- [Program to check whether a number is negative, positive or zero](find_number_sign.go) |
| 7 | +- [Program to check whether a number is divisible by 5 and 11 or not](is_divisible_by_5_and_11.go) |
| 8 | +- [Program to check whether a number is divisible by 5 and 11 or not using boolean operators](is_divisible_by_5_and_11_using_functions_using_bool.go) |
| 9 | +- [Program to check whether a number is even or odd](is_even_or_odd.go) |
| 10 | +- [Program to check whether a year is leap year or not](is_leap_year.go) |
| 11 | +- [Program to input any character and check whether it is alphabet, digit or special character](is_alphabet_or_digit.go) |
| 12 | +- [Program to input any alphabet and check whether it is vowel or consonant](is_vowel.go) |
| 13 | +- [Program to check whether a character is uppercase or lowercase alphabet](is_upper_case.go) |
| 14 | +- [Program to input week number and print week day](print_week_day.go) |
| 15 | +- [Program to input week number and print week day using switch](print_week_day_using_switch.go) |
| 16 | +- [Program to input week number and print week day using an array](print_week_day_using_array.go) |
| 17 | +- [Program to input month number and print month name and number of days in that month](days_of_month.go) |
| 18 | +- [Program to input month number and print month name and number of days in that month using a map](days_of_month_using_map.go) |
| 19 | +- [Program to input angles of a triangle and check whether triangle is valid or not](is_valid_triangle.go) |
| 20 | +- [Program to check whether the triangle is equilateral, isosceles or scalene triangle](get_triangle_type.go) |
| 21 | +## To be written |
| 22 | +- Program to find all roots of a quadratic equation |
| 23 | +- Program to calculate profit or loss |
| 24 | +- Program to input marks of five subjects Physics, Chemistry, Biology, Mathematics and Computer. Calculate percentage and grade according to following: |
| 25 | + * Percentage >= 90% : Grade A |
| 26 | + * Percentage >= 80% : Grade B |
| 27 | + * Percentage >= 70% : Grade C |
| 28 | + * Percentage >= 60% : Grade D |
| 29 | + * Percentage >= 40% : Grade E |
| 30 | + * Percentage < 40% : Grade F |
| 31 | +- Program to input basic salary of an employee and calculate its Gross salary according to following: |
| 32 | + * Basic Salary <= 10000 : HRA = 20%, DA = 80% |
| 33 | + * Basic Salary <= 20000 : HRA = 25%, DA = 90% |
| 34 | + * Basic Salary > 20000 : HRA = 30%, DA = 95% |
| 35 | +- Program to input electricity unit charges and calculate total electricity bill according to the given condition: |
| 36 | + * For first 50 units Rs. 0.50/unit |
| 37 | + * For next 100 units Rs. 0.75/unit |
| 38 | + * For next 100 units Rs. 1.20/unit |
| 39 | + * For unit above 250 Rs. 1.50/unit |
| 40 | + * An additional surcharge of 20% is added to the bill |
0 commit comments