2.Write a program to input marks of 5 subjects of a student and calculate total, average marks and percentage of all subjects. Assume that the maximum marks obtained by a student in each subject is 100.
3.The basic salary of an employee is input through the keyboard. The DA is 15% of the basic salary while the HRA is 25% of the basic salary. Write a program to calculate his total salary.
12. Write
a C program to print 1st 100 natural numbers.
14. Write a C program to print all alphabets (a to z) using while loop.
15. Write a C program to print the multiplication table from 1 to 5.
16. Write a C program to find the sum of first n natural numbers.
Output:
18.Write a C program
to display Fibonacci series.
Or
Write a program in C to generate the first n Fibonacci series.
Or
Write a program to find first N Fibonacci numbers.
Or
Write a C
program to print the following series:
0 1 1 2 3 5 8
19. Write a C program to calculate the sum of a 3 digit number.
OR
Write a C program to find the sum of a given integer.
21. Write a C program to read and print elements of array.
22. Write a program in C to display the largest and smallest element in an integer array.
24. Write a program to find the length of string using strlen().
25. Write a program to copy one string to another string using strcpy().
26. Write a program to concatenate (join) two strings.
27. Write a program to compare two strings.
29. Write a program in C to find the factorial of a number using function.
31. Write a C program to add two numbers using pointers.
32. Write a program to swap two numbers using function (call by reference).
Output:
33. Write a program in C to enter emp_id, emp_name and salary of three employees and display the records using structure.
34. Write a program in C to read name and marks of n number of students and store them in a file.
35. Write a C program to read a text file and print the output.
Output:
0 Comments
if you have any doubts plz let me know...