Tuesday, 25 December 2012

Basic Programs.

 Try to execute these programs with out using Predefined functions. 

1. write a program to find the biggest of  three(3) numbers.

2.  write a program to find the factorial of a number.

3.  write a program to reverse a number.

4.  write a program to whether the given string is a palindrome or not.

5.  write a program to find where the given number prime or not.

6.  write a program to swap two numbers with using third variable and with out using third variable.

7.  write a program to print the pyramid of numbers.

8.  write a program to generate fibonacci series.

9.  write a program to print the Pascal's triangle.

10. write a program to find gcd of two numbers.

No comments:

Post a Comment