Question: please try to answer all Question-4: (5 marks) Integer factorization of a number is breaking down the number into the set of in teger numbers

please try to answer all please try to answer all Question-4: (5 marks) Integer factorization of a

Question-4: (5 marks) Integer factorization of a number is breaking down the number into the set of in teger numbers (excluding i and the number itself). Write a C program to print al I the integer factors of an integer N (to be read from the user). Input: 12 Output: 2 3 4 6 Input: 35 Output: 57 Question-5: (5 marks) Write a C program using suitable loops to find out whether a given number is an odd palindrome. A palindrome number is a number that remains the same when its d igits are reversed. For example 121, 34543, 343, 131, 48984 are the palindromen umbers. Out of these 121, 34543, 343, and 131 are only odd. Your code should pr int whether the entered number is an odd palindrome or not. Question-6: (5 marks) Write a program which initializes an array X of size 100 with integers 1-100. T he elements of the array are initialized as follows. Elements 0 to 24 of X conta ins values 76-100 sequentially. Elements 25 to 49 of X contains values 1.25 sequ entially. Elements 50 to 74 of X contains 51-75 sequentially: Elements 75 to 99 of X contains 26-50 sequentially. The program then reorders the elements of the array X such that the constituent numbers are sorted from 1 to 100, i.e. X[i] = i+1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!