Académique Documents
Professionnel Documents
Culture Documents
Practical List -1
Computer Programming and Utilization
[2nd Sem (BM/EEE/MECH.)]
Practical List -2
Computer Programming and Utilization
[2nd Sem (BM/EEE/MECH.)]
1. Write a program that prints “Hello World”on 1st line and "How Are You" on
2nd line using single printf.
2. Write a program that prints & calculate Addition, subtraction, division,
multiplication, modulo in program.
3. Write a program to convert years into minutes. {Hint:-
Min=Years*365*24*60}
4. Write a program to interchange the values of two variables with and without
using third variable.
5. Write a program to find out maximum and minimum number out of three
numbers.
6. Write a program to find a factorial of given number.
7. Write a program to find whether the given number is prime or not.
8. Write a program to generate a Fibonacci series of first n numbers.
9. Five digit number is input through the keyboard. Write a program to reverse
the number.
10. WAP to calculate sum of digits of given number
11. .Write A program to Patten like
1
2 2
3 3 3
4 4 4 4
12. Write A program to Patten like
1
0 1
1 0 1
0 1 0 1
1 0 1 0 1
13. Write A Program to Accept 10 numbers in array sort it descending order and display
it.
14. WAP to check whether entered string is palindrome or not.
15.WAP to find length of string without using strlen().
16. WAP that takes input of name of 10 students & print them using getd() & putd().
17. WAP that makes a function that takes name of 10 students & arrange them in
ascending order in string array.
18. WAP to add the content of an Array using pointer.
19. WAP to sort 5 elements of ea array using pointer.
20. Write A Program to create structure of student with name & result in 5 subject and
display appropriate result class with student name for n student.
21. WAP to create structure of employee with full name, city, and salary and display it
for n employees.