# Tag Archives: developing web applications

## Javascript to reverse a given number

This program uses a Javascript to reverse a given number. This is also known as the implementation of a palindrome. The program is quite simple. It asks you to enter a number and reverses the same for you. You can refer to the images for inputs and outputs. We have explained two different methods to reverse a number… Read More »

## Javascript to generate squares of 1 to n numbers

## Simple Library Management System in PHP using MySQL

## Implementation of a Hospital management system using ArrayList in Java

## How to generate Fibonacci numbers using Javascript

This program explains how to generate Fibonacci numbers using Javascript. The javascript is embedded in HTML code. You can refer to the input and output images attached. Input: A number Output: Fibonacci numbers series for the entered number

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
//fibonacci.html <!DOCTYPE HTML> <?xml version="1.0" encoding="UTF-8"?> <html> <head> <title> fibonacci.html </title> </head> <body style="background-color:green"> <!-- it is advised to not use inline styling --> <h3 style="text-align:center; color:white"> Program to generate the Fibonacci Series </h3> <script type="text/javascript"> var limit = prompt("Enter the limit 'n' to generate the fibonacci series:", " "); var f1=0; var f2=1; document.write("The limit entered to generate the fibonacci series is: ",limit, "<br/>"); document.write("The fibonacci series : "); document.write("",f1," "); document.write("",f2," "); var i,f3; for(i=2; i<limit; i++) { f3=f1+f2; document.write("",f3," "); f1=f2; f2=f3; } </script> </body> </html> |

Suggested Read: JavaScript to find the position of the left most vowel in a string How to generate… Read More »