Output:
Enter the number to find nth Fibonacci number : 5
5th Fibonacci number is 3
Output:
Enter a number :
7685
Reverse of number :
5867
Output:
Enter Binary Number :
1111
Binary number : 1 1 1 1
Decimal number : 15
Output:
Enter angle : 45
Enter number of terms : 1
The value of sin 45.000000 = 0.785000
Output:
Enter angle : 45
Enter number of terms : 1
The value of cos 45.000000 = 0.690000
Output:
Enter the value of x =
5
Enter the end term =
2
e^x = 25.000000
Output:
Enter the value of a : 2
Enter the value of b : 3
GCD of 2 and 3 is 1
Output :
Enter max range : 20
2 3 5 7 11 13 17 19
Output :
Enter a number :
5
Square root of 5.000000 is 2.236068
Output :
Enter a character : A
The ASCII code of ‘A’ is : 65
Output:
Enter a limit:
7
Enter Elements : 1
2
3
4
5
6
7
First Partition of an array
1
2
3
Second Partition of an array
4
5
6
7
Output:
Enter the size of an array : 5
Enter Array Elements : 1
2
2
3
4
Original Array is : 1 2 2 3 4
The new array is : 1 2 3 4
Output:
Enter the size of an array : 7
Enter Array Elements : 1
1
2
3
3
4
5
Duplicate elements and their counts:
1 appears 2 times
3 appears 2 times
Total duplicate elements : 2
Output:
Enter a number : 10
2 5
Output:
Enter number of elements : 5
Enter the elements : 1
2
3
4
5
Reversing The array elements :
5 4 3 2 1
Output :
Enter number of elements : 5
Enter Array Elements: 2
1
3
4
5
Elements of array after sorting
1 2 3 4 5
Which smallest element do you want to determine : 3
Desired smallest element is : 5
Output :
Enter Array Size :
6
Enter Array Elements : 5
9
3
11
2
1
Array after merge sort
1 2 3 5 9 11
Output:
Enter the limit of an array : 5
Enter the element : 5
7
3
10
0
The minimum element of an array is 0
The maximum element of an array is 10