Improve the programming example B.5 to check whether every mark entered from the keyboard is positive or not. If any mark is wrongly entered as negative, prompt the user to re-enter. [Hint: use if clause and them put scanf()]

`#include int main(){int marks1, marks2, marks3, marks4, marks5; } Are you looking for the Class 9 Computer Science SEBA Solution? You are in the right place! This guide provides accurate, well-structured, and easy-to-understand solutions to all topics covered in the SEBA Class 9 Computer Science syllabus. Our Class 9 Computer Science SEBA Solution is designed…

Improve the programming example B.5 to check whether the student scores PASS or FALL in individual subjects [Hint: use if clause].

`#include int main(){int marks1, marks2, marks3, marks4, marks5;printf(“Enter marks for subject 1: “);scanf(“%d”, &marks1);printf(“Enter marks for subject 2: “);scanf(“%d”, &marks2);printf(“Enter marks for subject 3: “);scanf(“%d”, &marks3);printf(“Enter marks for subject 4: “);scanf(“%d”, &marks4);printf(“Enter marks for subject 5: “);scanf(“%d”, &marks5); } Are you looking for the Class 9 Computer Science SEBA Solution? You are in the right…

Write a C program to do the following.

(i) Declare three integer variables as int p = 9, q = 7, result = 0;`#include int main() {int p = 9, q = 7, result = 0; // Declare and initialize variables } Output: Value of p: 9Value of q: 7Value of result: 0 (ii) Display the value of the result variable after performing…