-->

Function related programs:

programs using function with no arguments and no return values.
click the link.
---------------------------------------------------------------------------------------------------------

1) WAP to get area of circle (pi*R*R) using user defined function circle().

                                                                                                                          solution

2)WAP to print greatest number between two numbers using function.

                                                                                                                           solution

3)WAP to print smallest number among three numbers using function.


                                                                                                                         solution

4)WAP to know a number is even or odd using function.

                                                                                                                      solution

5)WAP to know a number is positive or negative or zero using function.

                                                                                                                            solution

6)WAP to generate series 1,2,3,4,5,.............100 using function

                                                                                                                              solution

7)WAP to get sum of  1,2,3,4,5,.............100 using function.

                                                                                                                           solution

8)WAP to get factorial value of a number using function.

                                                                                                                          solution

9)WAP to get reverse of a number using function.

                                                                                                                         solution

10)WAP to get Fibonacci series 1,1,2,3,5,8,.... 20th term.

                                                                                                                        solution
11) WAp to know a number is prime or composite or not using function.

                                                                                                                        solution

12)WAP to get square root of a number using function.


                                                                                                                        solution

13)WAp to display all even numbers lying 1 and 200 using function.

                                                                                                                        solution

14)wap to print multiplication table of a number using function

                                                                                                                     solution
15)wap to find factorial value of a number using function.

                                                                                                                      solution

16)WAp to find value of y raised to x using function.

                                                                                                                     solution

17)WAP to get length of string using function

       
                                                                                                                   solution
18)Write a program to reverse a a string using function.

                                                                             solution 

Function types:-



Function with no arguments and no return values.






                                                                         

No comments:

Post a Comment