Program to find FLAMES in java


Output

Enter your name: 
Jothibasu
Enter your partner's name: 
people
The number is : 13

people is your Affection


Enter your name: 
Jothibasu
Enter your partner's name: 
Google
the number is : 11

Google is going to marry You


Odd numbers in odd index of array | Even numbers in even index of array

This logic is written only for equal number of odd and even numbers




Sample Output 

Enter array size:
6
Enter array elements:
1 2 3 4 5 6
After Shifting array elements :
5

Source Code