You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
19. Write a program to print the palindrome of a string.
20. Write a program to print the reverse of a number.
21. Input side of a square and print perimeter of the square. perimeter of a square = 4*side
22. Input length, breadth and height and output the volume of the cuboid. volume of a cuboid = lengthbreadthheight
23. Input the sides of a triangle and print the area of a triangle using heron's formula. heron's formula = (S*(S-A)*(S-B)*(S-C))^1/2 where S=(A+B+C)/2 and A,B and C are the sides of the triangle.
24. Input radius and height of the cylinder and print its volume. volume of cylinder = 3.14*radius*radius*height
25. Write a program to enter radius and height and print the curved and total surface area of cylinder. curved surface area = 2*3.14*radius*height and total surface area = 2*3.14*radius*(radius*height)
26. Write a program to print the following pattern:
30. Input radius and print the surface area of sphere. surface area of sphere = 4*(22/7)*radius*radius
31. Input side and print the volume of cube. volume of cube = side*side*side
32. Input two numbers and print their product.
33. Write a program to print the following pattern:
1
2 3
4 5 6
7 8 9 10
[Lnaguage : C++ Author: coder-mohan]
34. Write a program to check whether a number is armstrong or not.
35. Write a program to create fibonacci series.
36. Write a program to print the surface area of a cuboid. surface area of cuboid = 2*(l*b+b*h+h*l) where l is the length, b is the breadth and h is the height.
37. Write a program to print the first 10 Fibonacci numbers without recursion
38. Find minimum and maximum element in an array
39. Write a program to find whether a number is prime or composite .
40. Write a program to calculate aggregate percentage scored by a student in 5 subjects . Percentage = ( Marks Obtained / 500 )*100.
41. Write a program to input a number and print its square.
42. Write a program to input a number and print its cube.
43. Write a program to check whether the number is armstrong or not.
43. Write a program to print the square root of a number.
44. Write a program to print the cube root of a number.
45. Write a program that given 2 numbers, n and k, calculate n to the root of k.