Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
23 views54 pages

C Lab List Programs

The document lists 18 programming problems including finding sums and reverses of numbers, Fibonacci numbers, creating patterns and pyramids, checking for primes, transposing matrices, factorials, palindromes, and merging and sorting arrays.

Uploaded by

Jeffry David
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views54 pages

C Lab List Programs

The document lists 18 programming problems including finding sums and reverses of numbers, Fibonacci numbers, creating patterns and pyramids, checking for primes, transposing matrices, factorials, palindromes, and merging and sorting arrays.

Uploaded by

Jeffry David
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 54

BCA & BSC CS

1. Find the sum of digits and reverse of a number.


2. Find first n Fibonacci numbers
3. Create a pyramid using ‘*’.
4. Find the number of words in a sentence.
5. Check whether a number is prime or not
6. Perform matrix transpose
7. Find the sum of the series S = 1 + (½)2 + (1/3)3 +.... to 0.0001%
accuracy.
8. Create a pattern with the number N. E.g. N = 39174
Pattern:
39174
9174
174
74
4
9. Display the short form of a string. E.g. Computer Science : CS
10. Find the currency denomination of a given amount.
11. Find the Armstrong numbers within a given range.
12. Find the factorial of a number using recursion
13. Check for palindrome string.
14. Check for leap year.
15. Write odd and even numbers into separate files.
16. Base conversion of numbers.
17. Merge two numeric arrays in sorted order.
18. Fill upper triangle with 1, lower triangle with -1 and diagonal
elements with 0.
1. Find the sum of digits and reverse of a number.
2. Find first n Fibonacci numbers
3. Create a pyramid using ‘*’.
4. Find the number of words in a sentence.
5. Check whether a number is prime or not
6. Perform matrix transpose
7. Find the sum of the series S = 1 + (½)2 + (1/3)3 +.... to 0.0001%
accuracy.
8. Create a pattern with the number N.
9. Display the short form of a string. E.g. Computer Science : CS
10. Find the currency denomination of a given amount
11. Find the Armstrong numbers within a given range.
12. Find the factorial of a number using recursion
13. Check for palindrome string
14. Check for leap year.
15. Write odd and even numbers into separate files.
16. Base conversion of numbers.
17. Merge two numeric arrays in sorted order.
18 . Fill upper triangle with 1, lower triangle with -1 and diagonal
elements with 0.

You might also like