Questions
Q Title Page
08 Convert a Celsius temperature to Fahrenheit and vice versa. Input should be given by the 1-2
user. Display both results with proper labels.
18 Write a program to print “Hello, welcome to the Computer Science programming [Link] 3-4
must take the department name as input using scanf.
29 Write a program to read the marks of a student in five subjects and print whether the student 5-6
has passed or failed. Assume the pass mark is 40 in each subject.
36 Input an integer n and print all even numbers between 1 and n along with their sum. (For 7-8
all)
47 Print the following pattern for a given integer n. 9-10
11-
56 Student Protest Participation Analysis
Question: 01
Name of the Question:
Introduction:
Algorithm:
Flowchart:
Source Code
#include<stdio.h>
int sum(int num1, int num2)
{
return num1+num2;
}
int main()
{
int a,b;
scanf("%d %d", &a, &b);
int x=sum(a,b);
printf("%d",x);
return 0;
}
Input and Output
Outcome and Analysis: