Important C-programing question for the class 12 student with answers

  12 Computer Science C-programming important questions


Program question.


1. Write a C program to generate fibonacci series. [ 2, 3, 5, 8 ……10th term] 

2. Write a C program to input a number and check whether it is odd or even.

3.Write a C program to input a number and check whether it is exactly divisible by 5 but not by 7.

4.Write a C program to input a number and print multiplication table of given number.

5.Write a C program to find greatest number among 3 number.

6.Write a C program to calculate sum of n-natural number.

7.Write a C program to reverse a given number.

8.Write a C program to check whether given string is palindrome or not.

9.Write a C program to count total vowels from given string.

10.Write a C program to calculate factorial of a given number using recursive function.

11.Write a C program to find greatest number among 10/n numbers.

12.Write a C program to arrange 10/n numbers in ascending order.

13.Write a C program to read salary of 300 employees and count the number of employee getting salary between 30000 to 50000.

14.Write a C program to read two 3x3 matrices and perform matrix addition/multiplication.

15.Write a C program to enter name, roll number and percentage of 10 student and store them in a data file [use any name]

16.A datafile “patient.txt” contain name, disease , age and bed number of few patient. Write a C program to read and display records of all patients in appropriate format.

17.A datafile “patient.txt” contain name, disease , age and bed number of few patient. Write a C program to read and display only records of patients suffering from “COVID”.

Code:3629@

18.Write a C program to enter book name, book id and book author of few book and store them in a data file named “library.txt”. Display each records in screen in appropriate format.

1 Comments

Previous Post Next Post