1.
Take two numbers from the users and find the maximum and a minimum number
of those two numbers.
Sample Input Sample Output
Enter two numbers: 15 is maximum
10
15 10 is minimum
2. Take Three numbers from the user and find the maximum number among those
three numbers.
Sample Input Sample Output
Enter three numbers: 150 is maximum
100
150
130
3. Take a number from the user as input and determine whether that number is a
positive or negative number.
Sample Input Sample Output
Enter the number: -10 -10 is negative
4. Write a c program to check whether a given number is divisible by both 4 and
400 or not.
Sample Input Sample Output
Enter the number: 1600 1600 is divisible by both 4 &400
5. Write a C program to determine whether a given year is a leap year or not.
Sample Input Sample Output
Enter the year: 2021 Not leap year
6. Write a C program to check whether the given number is even or odd.
Sample Input Sample Output
Enter the numbers: 11 11 is odd
7. Take a letter as input from the user and determine whether that letter is a vowel
or consonant.
Sample Input Sample Output
Enter the letter: S Consonant
8. Write a C program to check whether a character is uppercase or
lowercase alphabet
Sample Input Sample Output
Enter the letter: A Upper Case
Letter
9. Write a C program to input any character and check whether it is alphabet, digit
or special character.
Sample Input Sample Output
Enter the letter: $ Special character
10. Write a C program where you have to take input the week number from the
user and print the corresponding week day.
Sample Input Sample Output
Enter the letter: 7 Friday
11. Write a C program to input month number and print number of days in that
month(use switch case).
Sample Input Sample Output
Enter the letter: 10 31 days