You are on page 1of 1

1. Write a program to find print the no of a days in a month using switch case.

Output:
Enter the month
Mar
Number of days is 31
2. Write a program to find reverse of a given number
output:
Enter number : 194
Reverse number is 491
3. Write a program to find the no of even numbers and odd numbers in given array
.
if the array is int[] a={10,23,32,45,21,89,90}
no of even numbers : 3, no of odd numbers are : 4
4. Write a program to get five numbers from the user and find the sum of even nu
mbers and odd numbers
separately.
if the array is : int[] a=new int[] {10,3,9,2,4,81}
sum of even numbers : 16
sum of odd numbers : 93

You might also like