-----------------------------------
THIS PROGRAM WILL DO THE FACTORIAL
-----------------------------------
Factorial Of: 6
Ans:- 720
----------------------------------------------------
THIS PROGRAM WILL GOING TO PERFORM MATRIX ADDITION
----------------------------------------------------
MATRICES ROWS: 3
MATRICES COLUMNS: 3
Make sure to add 9 number of items in both the
matrices. Items more than that will automatically
be dismissed. Type the numbers, row wise instead
of column wise to get the desired matrix. Make
sure to add space while typing different numbers
in the matrices.
MATRIX-1: 1 45 2 36 7 8 5 4 12 45
MATRIX-2: 75 82 4 56 36 1 78 52 30 19
The Matrices are:
| 1 45 2| |75 82 4|
|36 7 8| |56 36 1|
| 5 4 12| |78 52 30|
Adding the matrices we get:
|( 1+75) (45+82) ( 2+ 4)| -----------> | 76 127 6|
|(36+56) ( 7+36) ( 8+ 1)| -----------> | 92 43 9|
|( 5+78) ( 4+52) (12+30)| -----------> | 83 56 42|
----------------------------------------------------
What is the Quarterly Tax?
TAX (INR): 50
What is the Rate of Interest?
RATE (p.p.a): 10
Due from which year?
YEAR: 2009
Due starting from which month? Choose the option.
1) JAN 2) FEB 3) MAR
4) APR 5) MAY 6) JUN
7) JUL 8) AUG 9) SEP
10) OCT 11) NOV 12) DEC
MONTH: 4
TOTAL PRINCIPAL: 1800
TOTAL INTEREST: 9810
PRESS ENTER TO EXIT...
Enter the starting number: 1
Enter the ending number: 500
So the perfect numbers between 1 and 500 are as follows:
1) 6
2) 28
3) 496
Enter the starting number: 1
Enter the ending number: 500
So the perfect numbers between 1 and 500 are as follows:
6
28
496
Enter the starting number: 1
Enter the ending number: 100
So the prime numbers between 1 and 100 are as follows:
1) 2
2) 3
3) 5
4) 7
5) 11
6) 13
7) 17
8) 19
9) 23
10) 29
11) 31
12) 37
13) 41
14) 43
15) 47
16) 53
17) 59
18) 61
19) 67
20) 71
21) 73
22) 79
23) 83
24) 89
25) 97
Enter the starting number: 1
Enter the ending number: 50
So the prime numbers between 1 and 50 are as follows:
2
3
5
7
11
13
17
19
23
29
31
37
41
43
47
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 a
Size: 20
1 2 3 4 5
10 9 8 7 6
11 12 13 14 15
20 19 18 17 16
My name is Jishan
nahsiJ si eman yM
No. of terms: 6
So the addition is 91.
----------------------
STRING COMPARISON
----------------------
String-1: Hello
String-2: hello
There are 5 characters in both the string.
----- -----
STR-1 STR-2
----- -----
'H' != 'h'
'e' = 'e'
'l' = 'l'
'l' = 'l'
'o' = 'o'
Strings are not equal
Triangle Row: 10
1
121
12321
1234321
123454321
12345654321
1234567654321
123456787654321
12345678987654320
1234567900987654400
*************************************************************
*************************************************************
** <1> To ADD a new node to the list **
** <2> To ADD a new node at the BEGINNING of the list **
** <3> To ADD a new node AFTER a given NODE in the list **
** <4> To ADD a new node AFTER a given VALUE in the list **
** <5> To DELETE a node from the BEGINNING of the list **
** <6> To DELETE a given NODE in the list **
** <7> To DELETE a given VALUE in the list **
** <8> To DELETE the LAST node in the list **
** <9> To REVERSE the list **
** <10> To SEARCH for a VALUE in the list **
** <11> To DISPLAY the list **
** <0> To END the operation **
*************************************************************
*************************************************************
Enter Choice:
Enter size: 10
* * * * * * * * * *
*
* * * * * * *
* * *
* * * * *
* * * * * *
* *
* * * * * * * *
Enter size: 24
* * * * * * * * * * * * * * * * * * * * * * * *
*
* * * * * * * * * * * * * * * * * * * * *
* * *
* * * * * * * * * * * * * * * * * * *
* * * * *
* * * * * * * * * * * * * * * * *
* * * * * * *
* * * * * * * * * * * * * * *
* * * * * * * * *
* * * * * * * * * * * * *
* * * * * * * * * * * *
* * * * * * * * * *
* * * * * * * * * * * * * *
* * * * * * * *
* * * * * * * * * * * * * * * *
* * * * * *
* * * * * * * * * * * * * * * * * *
* * * *
* * * * * * * * * * * * * * * * * * * *
* *
* * * * * * * * * * * * * * * * * * * * * *
Enter a number: 1234567890
Twelve Thousand Three Hundred Forty Five Lakh Sixty Seven Thousand Eight Hundred Ninety
Enter a number: 231
Two Hundred Thirty One