Professional Documents
Culture Documents
…..Q1: write a program to that displays a box and a diamond of asterisks(*).(Use the
nested loop)
*************
* *
* *
* *
* *
*************
…..Q2. write a program that calculates the squares and cubes of numbers from 1 to 10
(Use do while loop)
Number square cube
0 0 0
1 1 1
2 4 8
. . .
. . .
10 100 1000
…..Q3. write a program to find whether a number is even or odd.
…..Q4. write a program to generate the Fibonacci Series.
…..Q5. write a program to find the factorial of 1 to 10.
…..Q6. write a program to solve the quadratic equation.
…..Q7. write a program to pass the command line arguments and display those
arguments as an output.
…..Q8. write a program which finds that whether a character is vowel or not (vowel
eg:a,e,i,o,u)
…..Q9. write a program to display ASCII table from 0 to 225.
…..Q10. develop the five function calculator (eg: +,-,*,/,%) use switch statement.
…..Q11. write a program that prints the following table of values.
Number 10*Number 100*Number 1000*Number
0 0 0 0
1 10 100 1000
2 20 200 2000
3 30 300 3000
. . . .
. . . .
5 50 500 5000
…..Q12. write a program to display sum and product of first of ten integers numbers.
1
2
3
.
.
.
10
Sum:??
Product:??
…..Q13. write a program to print sum of first ten even and first odd numbers.