(Assignment - 1) JavaScript and PHP
Take input as fixed number for all program and use html and css to make fancy output on
the screen.
1. WAP to find sum of two numbers.
2. WAP to find product of two numbers.
3. WAP to add, subtract, multiply and divide two numbers.
4. Write php pr ogram to x5+2xy+y2
5. WAP to find simple interest. [si=(p*t*r)/100]
6. WAP to area of rectangle. [area=l*b]
7. WAP to find area of circle. [area=pi*r*r] (use pi as constant)
8. WAP to find largest among two numbers.
9. WAP to find smallest among two numbers.
10. WAP to find largest among three numbers.
11. WAP to find smallest among three numbers.
12. WAP to check whether a number is odd or even.
13. WAP t o check whether a number is divisible by 7 or not.
15. WAP to check whether a number a number is divisible by 7 but not by 13.
16. WAP to input CP and SP and check profit or loss. Also find profit or loss amoun t.
17. WAP to find print numbers from 1 to 10.
18. WAP to find sum of numbers from 5 to 100.
19. WAP to print following series along with the sum .
a. 5, 10, 15, 20, …… 50
b. 1, 4, 9, 16, ….. upto 20 terms.
22. WAP to find factorial of a number.
23. WAP to print following Fibonacci series. 1, 1, 2, 3, 5, 8, …….. upto 15 terms.
24. WAP to check whether a number is prime or not.
25. WAP to print prime numbers from 1 to 100.
26. WAP to calculate greatest among the four variable with the use of ternary operator.
27. Write a program to calculate arithmetic operation with use of switch case statement.
28. Write a program to generate multiplication table in the form of table.