-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExp01.c
33 lines (32 loc) · 796 Bytes
/
Exp01.c
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
32
33
#include<stdio.h>
int main(){
int p,e;
printf("Enter the threshold value of the passing number:");
scanf("%d",&p);
printf("Enter the threshold value of the excellence number:");
scanf("%d",&e);
if(e>=p){
int n;
printf("Enter a number:");
scanf("%d",&n);
if(n<p)
{
printf("It is a failing number");
}
else {
if(n>=p)
{
printf("It is a passing number\n");
}
if(n>=e)
{
printf("It is an excellent number");
}
}
}
else
{
printf("Input is invalid");
}
return 0;
}