Output:
Enter the values of a, b and c : 3
4
5
Area of triangle = 6
Output:
Enter three numbers : 15
22
7
22 is the largest number.
Output:
Enter the number : 435
Reverse of number is : 534
Output:
Enter two Non_Zero Integer Numbers : 56
98
GCD of 56 and 98 is 14
Output:
Enter the range : 5
The prime numbers in between the range 1 to 5 is :
2 3 5 7 11
Output:
Enter the number of elements : 10
0 1 1 2 3 5 8 13 21 34
Output:
Enter the number : 34
34 is even
And
Enter the number : 13
13 is odd
Output:
Before swap a=10 and b=20
After swap a=20 and b=10
Output:
Enter value of x : 15
Enter value of y : 30
After Swapping : x = 30, y=15
Output:
Enter Array Size : 5
Enter Array Elements : 2
3
4
5
6
Sum of the array = 20
Output:
Enter a number : 6
Factorial of 6 is 720
Output:
Enter the number of terms : 10
Fibonacci series :
0 1 1 2 3 5 8 13 21 34
Output:
Enter size of array : 5
Enter elements in array: 2
3
4
5
6
Array in reversed order :
6 5 4 3 2
Output:
Enter size of array: 5
Enter 5 elements : 2
4
9
3
7
Largest in given array is 9
Output:
Please Enter Number of elements in an array : 5
Please Enter 5 elements of an array : 34
25
25
33
28
Final Array after Deleting Duplicates Array Elements is :
34 25 33 28
Output:
Original array ->
0 1 2 3 4 5 6 7 8 9
Even ->
0 2 4 6 8
Odd ->
1 3 5 7 9
Output:
Enter the number of elements in the array: 5
Enter a number: 2
Enter a number: 4
Enter a number: 3
Enter a number: 8
Enter a number: 12
Elements of array after sorting :
1 4 3 8 12
Which Smallest element do you want to determine: 3
Desired smallest element is : 3
Output:
//Storing Information
Enter information of students :
For roll number: 1
Enter first name: Avi
Enter marks : 98
For roll number: 2
Enter first name: Alice
Enter marks : 33
For roll number: 3
Enter first name: Bob
Enter marks : 41
For roll number: 4
Enter first name: Adam
Enter marks : 92
For roll number: 5
Enter first name: Alok
Enter marks : 28
//Displaying Information
Roll number: 1
First name: Avi
Marks: 98
Roll number: 2
First name: Alice
Marks: 33
Roll number: 3
First name: Bob
Marks: 41
Roll number: 4
First name: Adam
Marks: 92
Roll number: 5
First name: Alok
Marks: 28
Number of students failed is : 2
Output:
Enter a line of string: Hello, World!
Vowels: 3
Consonents: 7
Special Characters: 2
White spaces: 2
Digits: 0
Output:
Enter the number of rows and columns of the matrices(max
10) : 2 2
Matrix 1:
Enter elements of matrix(2x2):
Element [1][1]: 5
Element [1][2]: 6
Element [2][1]: 7
Element [2][2]: 8
Matrix 2:
Enter elements of the matrix(2x2):
Element [1][1]: 1
Element [1][2]: 2
Element [2][1]: 3
Element [2][2]: 4
Result of Addition:
6 8
10 12
Result of Subtraction:
4 4
4 4