Professional Documents
Culture Documents
Lab Exercise 4
Lab Exercise 4
AIMST UNIVERSITY
BI034/SI034 INFORMATION TECHNOLOGY STUDIES 3
LAB EXERCISE 4: If..Else Statement
Exercise 4: Write a program ask the user to input a character and then check whether the character
is an alphabet or not.
Exercise 6: Write a C++ program to ask the user to enter a year and then check whether a year is a
leap year or not.
Exercise 7: Write a C++ program to ask the user to enter input a number between 1-7 and print the
name of the day in the week. Monday being 1, and Sunday being 7