-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathP6.c
More file actions
31 lines (29 loc) · 669 Bytes
/
Copy pathP6.c
File metadata and controls
31 lines (29 loc) · 669 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
Author :- Rajeshwari
purpose :- solving problem
Date :-06/10/21 wednesday .
Date of modification :- 19/12/21 , Sunday .
Problem statement
write a program to accept average marks of a student and print whether student is pass or fail
(student is pass if average is greater than equal to 40.00)
useing multiple if statement
*/
#include<stdio.h>
void main()
{
float am;
printf("Enter your average marks");
scanf("%f",&am);
if(am>=75.00)
{
printf(" Result = Distinction");
}
if(am>=40.00)
{
printf("Result = Pass");
}
if(am<=40.00)
{
printf("Result = Fail");
}
}