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.