You are on page 1of 9

Example 1 :

Example 2:
Example 3:

Example 4:

Example 5:
Example 6:

Example 7:
Example 8:

Example 9:
Example 10:
Fibonacci Sequence:

Looping Tables
Calculating Factorial

Fibonacci Sequence

Even or Odd Checker

Prime or Composite Checker


a = input ("Enter Starting Number")

b = input ("Enter Final Number")

m=0

flag = 0

n=3

m = n/2

if n == 0 then

output "it is not a prime number"

else

loop while i >= m

if n%i == 0 then

output "it is not a prime number"

i++

flag = 1

end if

end loop
if flag == 0 then

output "it is a prime number"

end if

Prime or Not:

Star Pattern Code

You might also like