Posts
Showing posts from May, 2023
Write a program to find the octal equivalent of the entered number.
- Get link
- X
- Other Apps
Write a program to add first ten terms of the following series using a for loop: 1/1!+1/2!+1/3!+ ⋯.
- Get link
- X
- Other Apps
According to a study, the approximate level of intelligence of a person can be calculated using the following formula: i = 2 + ( y + 0.5 x ) Write a program, which will produce a table of values of i, y and x, where y varies from 1 to 6, and, for each value of y, x varies from 5.5 to 12.5 in steps of 0.5.
- Get link
- X
- Other Apps
Write a program to enter the numbers till the user wants and at the end it should display the count of positive, negative and zeros entered.
- Get link
- X
- Other Apps
Write a program to enter an integer and determine and print whether the integer entered is prime number or composite number. A number is prime if it has exactly two divisors
- Get link
- X
- Other Apps
Write a program to print all the ASCII values and their equivalent characters using a while loop. The ASCII values vary from 0 to 255.
- Get link
- X
- Other Apps
Write a program to find the sum of the following series up to 20 terms. 5, 8, 11, 14, 17………
- Get link
- X
- Other Apps
Write a program to input a number and to find and display its non-trivial divisors.
- Get link
- X
- Other Apps
Write a program to input base and power and calculate and display its result. For example, if base = 2 and power = 5, result = 32
- Get link
- X
- Other Apps
Write a program to input a number and display its table.
- Get link
- X
- Other Apps
Write a program to input a number, calculate its factorial and display it
- Get link
- X
- Other Apps
Write a program to input a number and display the number of asterisks corresponding to that number. For example, if number = 5, output = *****
- Get link
- X
- Other Apps
Write a program to calculate and display the result of the following sum, when number n is input: 1+2+3……….n.
- Get link
- X
- Other Apps
Write a program using switch-case structure to input an integer between 1 and 100 and print the corresponding integer in alphabets. For example, if the user enters 32, the result should be “You entered thirty two.” You may also use some other selection structure along with the switch-case structure in order to embed the full functionality the question has required.
- Get link
- X
- Other Apps