Professional Documents
Culture Documents
1|Page
9. Write a program to find whether an inputted
number is perfect or not.
10. Write a Program to check if the entered
number is Armstrong or not.
11. Write a Program to find factorial of the
entered number.
12. Write a Program to enter the number of
terms and to print the Fibonacci Series.
13. Write a Program to enter the string and to
check if it’s palindrome or not using loop.
14. Write a Program to search an element
using linear search.
15. Write a program to sort a sequence using
insertion sort.
2|Page
1)Read a text file line by line and display each word
separated by #.
OR
3|Page
OUTPUT:
4|Page
OUTPUT:
5|Page
3. Remove all the lines that contain the character a’ in
a file and write it to another file
OR
6|Page
OUTPUT:
7|Page
4. Create a binary file with name and roll number.
Search for a given roll number and display the name,
if not found display appropriate message.
8|Page
OUTPUT:
9|Page
6. Write a random number generator that generates
random numbers between 1 and 6 (simulates
a dice)
10 | P a g e
Output:
11 | P a g e
Output:
12 | P a g e
Output:
Output:
13 | P a g e