Professional Documents
Culture Documents
Q. Write a program to display the cube of the number upto given an integer.
Q. Write a program to display the n terms of odd natural number and their
sum.
Q. Write a program to display the n terms of even natural number and their
sum.
Q. Write a program to find the length of a string without using the library
function.
Q. Write a to display the pattern
*
**
***
****
*****
1
12
123
1234
12345
integers.
*
**
***
****
*****
Q. Write a to display the pattern
*****
****
***
**
*
Q. Write a program to calculate x raised to the power n (xn).
not.
145 = 1! + 4! + 5! = 145
Q. Write a program that reads 5 numbers and sums all odd values between
them.
Q. Write a program that reads an integer between 1 and 12 and prints the
Q. Write a program that prints all even numbers between 1 and 50.
Q. Write a program that reads 5 numbers and counts the number of positive
Q. Write a program to find and print the square of all the even values from 1
to a specified value.
Q. Write a program to accept two integers and check whether they are equal
or not.
simple calculation.