Problem statements for PPC lab IA-1
1. Write a program to perform arithematic operations of 2 numbers
(addition,subtraction,multiplication,division)
2. Write a program to find area of rectangle.
3. Write a program to find the simple interest.
4. Write a program to find the largest of two numbers.
5. Write a program to find largest of three numbers.
6. Write a program to find the area of triangle when the length of 3 sides are given.
7. Write a program to find whether a given number is Armstrong or not.
8. Write a program to find reverse of a number and check whether it is palindrome
9. Write a program to find the sum of series y = x1 x2 + x3 + …….+ xn
10. Write a program to print n natural numbers and find its sum.
11. Write a program to use switch case to implement simple calculator.
12. Write a program to find prime numbers between n1 and n2.
13. Write a program to check whether a number is prime or not.
14. Write a program to convert seconds in HH:MM:SS format.
15. Write a program to print n elements of array , find its sum,average and print the below average
and above average count.
16. Write a program to read the characters and find the count of each character.
17. Write a program to print *
**
***
****
*****
18. Write a program to print inverted half pyramid of type
* * * * *
* * * *
* * *
* *
*
[Link] a program to print the multiplication tables between n1 and n2
[Link] a program to find fabonacci series.