The document lists 11 programming problems including checking if a number is prime, checking if a number is a palindrome, converting decimal to binary, swapping array elements, printing patterns, and converting numbers to words.
The document lists 11 programming problems including checking if a number is prime, checking if a number is a palindrome, converting decimal to binary, swapping array elements, printing patterns, and converting numbers to words.
2 W.A.P. to check given number is palindrome or not.
3 Program to convert number from Decimal to Binary. 4 Program to swap adjacent elements of one dimension array. 5 Print all natural numbers upto N without using semi-colon. 6 Given two arrays, 1, 2,3,4,5 and 2, 3,1,0,5 find which number is not present in the second array. 7 Write a program to calculate the angle between the hour hand and the minute hand of a clock if the time is given in a string format. Input: h = 12:00, m = 30.00 ,Output: 165 degree 8 Arrange the array of 10 elements in a given order. Minimum should be at center. Second minimum to its right, third minimum to its left, fourth minimum to its right and so on. 9 Write a program to print following pattern 1 2 3 4 5 10 9 8 7 6 11 12 13 14 15 20 19 18 17 16 21 22 23 24 25 10 W.A.P. to convert numbers into equivalent characters in a given string. Input: a2b3cd Output: abbcccd Input: 4az2b5c3af3g Output: aaaazbbcccccaaafggg 11 Accept a number between 0 and 99 from the user and display the value in words. For example, entering 25 should display “Twenty Five”. Appropriate error message should be displayed if the value entered by the user is out of permissible range.
1 W.A.P. to check given number is prime or not.
2 W.A.P. to check given number is palindrome or not. 3 Program to convert number from Decimal to Binary. 4 Program to swap adjacent elements of one dimension array. 5 Print all natural numbers upto N without using semi-colon. 6 Given two arrays, 1, 2,3,4,5 and 2, 3,1,0,5 find which number is not present in the second array. 7 Write a program to calculate the angle between the hour hand and the minute hand of a clock if the time is given in a string format. Input: h = 12:00, m = 30.00 ,Output: 165 degree 8 Arrange the array of 10 elements in a given order. Minimum should be at center. Second minimum to its right, third minimum to its left, fourth minimum to its right and so on. 9 Write a program to print following pattern 1 2 3 4 5 10 9 8 7 6 11 12 13 14 15 20 19 18 17 16 21 22 23 24 25 10 W.A.P. to convert numbers into equivalent characters in a given string. Input: a2b3cd Output: abbcccd Input: 4az2b5c3af3g Output: aaaazbbcccccaaafggg 11 Accept a number between 0 and 99 from the user and display the value in words. For example, entering 25 should display “Twenty Five”. Appropriate error message should be displayed if the value entered by the user is out of permissible range.