You are on page 1of 25

INPUT :

Enter Number for checking


666

OUTPUT :
666 is a Smith Number
Press any key to continue...



INPUT :
Enter Number for checking
564

OUTPUT :
564 is not a Smith Number
Press any key to continue...

INPUT :
Enter Number for checking
139

OUTPUT
139 is a Happy Number
Press any key to continue...


INPUT :
Enter Number for checking
164

OUTPUT
164 is not a Happy Number
Press any key to continue...
OUTPUT :

Special Numbers between 1-1000 are : 1 2 145
Press any key to continue...
INPUT :
Enter size of grid for square matrix
3
Enter Elements of Matrix
1
2
3
4
5
6
7
8
9

INPUTTED MATRIX
123
456
789
OUTPUT :
Upper Triangle
123
56
9
Press any key to continue...
INPUT :
Enter Number of terms
5

OUTPUT
Prime Tribonacci Series : 2 3
Press any key to continue...



INPUT :
Enter Number of terms
13

OUTPUT
Prime Tribonacci Series : 2 3 11 37
Press any key to continue...
INPUT :
Enter Number to print Binary Equivalent of
89

OUTPUT :
Binary Equivalent of 89 is: 1011001
Press any key to continue...


INPUT :
Enter Number to print Binary Equivalent of
1246

OUTPUT :
Binary Equivalent of 1246 is: 10011011110
Press any key to continue...

INPUT
Enter the size of array
5
Enter elements of array
12
13
14
151
16
Inputted Array
12 13 14 151 16
Enter the element and position where it is to be entered
123
4

OUTPUT
ARRAY AFTER INSERTION
12 13 14 123 151 16


ENTER THE POSITION OF DELETION
5
ARRAY AFTER DELETION
12 13 14 123 16
Enter a string
Computers
String in uppercase is
COMPUTERS
ENTER THE ELEMENT AND POSITION WHERE IT IS TO BE ENTERED
L
8
COMPUTELS
Enter the position from element is to removed
3
COPUTELS
String with each element shifted two forward
EQRWVGNU

INPUT
Enter the dimensions of array
3
3
Enter elements of array:
1
2
3
4
5
6
7
8
9

OUTPUT:
Transposed Matrix
1 4 7
2 5 8
3 6 9

INPUT:
Enter the number to be checked
10

OUTPUT:
Number is triangular
INPUT:
Enter the number to be checked
56

OUTPUT:
Number is not triangular

Enter your name
A.K. SINGH
Enter your phone number
956545665
Enter number of phone calls
23
Phone Number Name Total Calls Amount
956545665 A.K. SINGH 23 500.0

INPUT
Enter the number of countries you want to enter
3
Enter the name of countries along with their capitals
Country name
INDIA
Capital
DELHI
Country name
PAKISTAN
Capital
ISLAMABAD
Country name
USA
Capital
NEW YORK
Enter the name of country to be searched
INDIA

OUTPUT
Search Found!
Country name INDIA
Capital DELHI

INPUT
Enter Integer:
45

OUTPUT
2D
2D Converted back to decimal as 45

INPUT
Enter Integer:
569

OUTPUT
239
239 Converted back to decimal as 569

Enter the size of the Array to be Searched : 5
Enter elements of the array
1
2
3
4
5

Sorted Array is :
1 2 3 4 5
Enter the Element to be Searched : 5
5 found at Position 5

INPUT:
Enter the width of palprime numbers(ie no. of digits in a palprime number )
5

OUTPUT:
Palprime numbers are:
11311
13831
17971

INPUT:
Enter the width of palprime numbers(ie no. of digits in a palprime number )
9

OUTPUT:
Palprime numbers are:
Value of n should be within range 2...5

INPUT:
Enter limit: 13
OUTPUT
+(1/3+1/5)+(1/5+1/7)+(1/11+1/13)
Brun's constant below limit i.e. 13 is :1.0440226793289185

INPUT:
Enter limit: 10
OUTPUT
+(1/3+1/5)+(1/5+1/7)
Brun's constant below limit i.e. 10 is :0.8761905133724213

INPUT:
NAME :ABC
BASIC :1500.0

OUTPUT:
Hours Worked :15
Rate :7.0
Wage :1605.0

INPUT:
Employee No.:234
Employee Name :Reva
Employee Designation:Mgr

OUTPUT:
Net salary: 15210.0

INPUT:
Enter the Number of elements
7
Enter the value of x
3

OUTPUT
Sum of the given series is-18.34997127910441



INPUT:
Enter the Number of elements
6
Enter the value of x
2

OUTPUT
Sum of the given series is-3.8416054727165836

INPUT
Enter a number
45

OUTPUT
45= 2*3*5*7*11*13*17*19*23*29*31*37*41*43=-1109722098


INPUT
Enter a number
9

OUTPUT
9= 2*3*5*7=210

INPUT
Enter the size of array
5
Enter the elements of array
1
2
3
4
5
1 2 3 4 5
Enter the position from array to be deleted
3

OUTPUT
The new array is
1 2 4 5
The prime elements of the array are
2 5

INPUT:
Enter elements of array 1:
1
2
3
4
5
Enter elemnts of array 2:
6
7
8
OUTPUT:
1 2 3 4 5 6 7
Enter Number
991
991 is a Magic Number.


Enter Number
10001
10001 is not a Magic Number.

INPUT
Enter Element 1
1
Enter Element 2
2
Enter Element 3
3
Enter Element 4
45
Enter Element 5
16
Enter Element 1
16
Enter Element 2
45
Enter Element 3
55
Enter Element 4
33
Enter Element 5
3

OUTPUT:
Common Elements
16 3 45

Enter Word :
EUPhoria
String : EUPhoria
Changed String : eupHORIA

Enter Word :
divinity
String : divinity
Changed String : DIVINITY

You might also like