You are on page 1of 2

1) Print the numbers from 1 to 50.

2) Find the sum of first n natural numbers.


3) Write a javascript program to read 10 numbers from keyboard
and find their sum and average.
4) Javascript program to display the cube of the number upto given
an integer.
5) Print the given pattern of the following
1
12
123
1234
12345
6) Find the factorial of a number.
7) Display n terms of even natural numbers and sum.
8) Display the pattern like a pyramid using asterisk and each row
contain an odd number of asterisks.
*
***
*****
9) To check whether a given number is an armstrong number or
not.
10) To determine whether a given number is prime or not. 
11) To display the first n terms of Fibonacci series.
12) To check whether a number is a palindrome or not.
13) Find the sum of 1 to 10 using the do-while loop 
14) Display numbers from 1 to 20 using while loop.
15) Find the sum of positive numbers,if the user enters a
negative number the loop will end and the entered negative
number is not added to sum.
16)  Program to find all numbers between 1 to 100 divisible by 4
17) Program to print first 10 multiples of 5.
18) print a table of number 2 using do while.

You might also like