Write a C program to input month number and print number of days in that month.Write a C program to input week number and print week day.Write a C program to check whether a character is uppercase or lowercase alphabet.Write a C program to input any character and check whether it is alphabet, digit or special character.Write a C program to input any alphabet and check whether it is vowel or consonant.Write a C program to check whether a character is alphabet or not.Write a C program to check whether a year is leap year or not.Write a C program to check whether a number is even or odd.Write a C program to check whether a number is divisible by 5 and 11 or not.Write a C program to check whether a number is negative, positive or zero.Write a C program to find maximum between three numbers.Write a C program to find maximum between two numbers.Required knowledgeīasic C programming, Relational operators, Logical operators List of if.else programming exercises In this exercise we will focus to control program flow using if.else statements.Īlways feel free to drop your queries and suggestions below in the comments section. Relational and logical operators supports this comparison.Ĭ language supports three variants of if statement.Īs a programmer you must have a good control on program execution flow. It is used to compare things and take some action based on the comparison. If statement works like “If condition is met, then execute the task”. For example – if user inputs valid account number and pin, then allow money withdrawal. It is used to take an action based on some condition.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |