Given an integer array of size n write a function that finds the maximum product of two integers in it.
Write a program using a for loop to display the cube of the numbers up to an integer entered by the user. Only a single for loop is required for this exercise.
Implement the code of Doubly Linked List.
Add your roll # node using Append function.
Add the last two digits of your contact # using Prepend function
Add your favorite digit between roll # and contact #.
And display the doubly linked list.
Write a program to find the number and sum of all integers between 0 till 200 which are divisible by 9. Only a single do-while loop is required for this exercise.
Write a program using a for loop to print the table of any given number till 10
Write a program with Student as abstract class and create derive classes Arts, Science from base class Student. Create the objects of the derived classes and process them and access them using array of pointer of type base class Student.
The factorial of a number is the function that multiplies the number by every natural number below it example 4! = 4*3*2*1 = 24
Write a code to find the factorial of a number given by the user
Q: Suppose there is link list as follows:
Element : Address
5 : 1000
10 : 1500
15 : 2000
20 : 3000
You need to write a pseudo code to insert new node after (15) and set its value as
18. You can suppose the values of address.
A prime number is called an Additive prime if the sum of its digits is also a prime
number. Write a program that will display the N (user input) number of additive prime numbers
and displays the output in the following format:
Prime number
Sum of its digits
2
2
3
3
...
11
2
using user-defined functions
Sample output:
Enter an integer: 10
Prime number Sum of Digits
2 2
3 3
5 5
7 7
11 2
23 5
29 11
41 5
43 7
47 11
Write program that implements a function with the following header to display all
the even digits in an integer:
void displayEven(int number)
For example, displayEven(345) displays 4. Write a test program that prompts the
user to enter an
integer and displays the even digits in it. Using User define functions
Sample output:
Enter an integer: 123456789
8 6 4 2