Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 18

PRACTICAL FILE OF

PROGRAMMING IN PERL

Submitted to:

Submitted By:

INDEX
S.NO. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. PROGRAM Program to generate Fibonacci series Program to find factorial of a number Program to find whether a string is palindrome or not Program to generate Pascal triangle Program to add two matrices Program to implement Bubble sort Program to implement Binary search Program to find number of vowels in a string Program to find whether a number is prime or not Program to find sum of digits of a number PAGE NO. 3 4 5 6 7-8 9-10 11-12 13 14 15

1. Write a program in perl to generate Fibonacci series.

Program:-

Output:-

2. Write a program in perl to find factorial of a number

Program:-

Output:-

3. Write a program in perl to find out whether a string is palindrome or not.

Program:-

Output:-

4. Write a program in perl to generate pascal triangle.

Program:-

Output:-

5. Write a program in perl for addition of two matrices.

Program:-

Output:-

6. Write a program in perl for bubble sort. Program:-

10

Output:-

11

7. Write a program in perl for binary search.

Program:-

12

13

Output:-

14

8. Write a program in perl to find number of vowels in a string.

Program:-

Output:15

9. Write a program in perl to find whether a number is prime or not.

Program:-

16

Output:-

17

10.Write a program in perl to find sum of digits of a number.

Program:-

Output:-

18

You might also like