#include<stdio.h>
void main()
{
int P,O;
float N;
scanf("%d",&P);
scanf("%f",&N);
scanf("%d",&O);
switch(P)
{
case 1:if(O<=50000)
{
if(N<=3.4)
{
printf("Emission do not exceed permitted level of 3.4 g/mile");
}
else
{
printf("Emission exceed permitted level of 3.4 g/mile");
}
}
else
{
if(N<=1)
{
printf("Emission do not exceed permitted level of 1 g/mile");
}
else
{
printf("Emission exceed permitted level of 1 g/mile");
}
}
break;
case 2:if(O<=50000)
{
if(N<=0.31)
{
printf("Emission do not exceed permitted level of 0.31 g/mile");
}
else
{
printf("Emission exceed permitted level of 0.31 g/mile");
}
}
else
{
if(N<=0.39)
{
printf("Emission do not exceed permitted level of 0.39 g/mile");
}
else
{
printf("Emission exceed permitted level of 0.39 g/mile");
}
}
break;
case 3:if(O<=50000)
{
if(N<=0.4)
{
printf("Emission do not exceed permitted level of 0.4 g/mile");
}
else
{
printf("Emission exceed permitted level of 0.4 g/mile");
}
}
else
{
if(N<=0.5)
{
printf("Emission do not exceed permitted level of 1.0 g/mile");
}
else
{
printf("Emission exceed permitted level of 1.0 g/mile");
}
}
break;
case 4:if(O<=50000)
{
if(N<=0.25)
{
printf("Emission do not exceed permitted level of 0.25 g/mile");
}
else
{
printf("Emission exceed permitted level of 0.25 g/mile");
}
}
else
{
if(N<=0.31)
{
printf("Emission do not exceed permitted level of 0.31 g/mile");
}
else
{
printf("Emission exceed permitted level of 0.31 g/mile");
}
}
break;
}
}
void main()
{
int P,O;
float N;
scanf("%d",&P);
scanf("%f",&N);
scanf("%d",&O);
switch(P)
{
case 1:if(O<=50000)
{
if(N<=3.4)
{
printf("Emission do not exceed permitted level of 3.4 g/mile");
}
else
{
printf("Emission exceed permitted level of 3.4 g/mile");
}
}
else
{
if(N<=1)
{
printf("Emission do not exceed permitted level of 1 g/mile");
}
else
{
printf("Emission exceed permitted level of 1 g/mile");
}
}
break;
case 2:if(O<=50000)
{
if(N<=0.31)
{
printf("Emission do not exceed permitted level of 0.31 g/mile");
}
else
{
printf("Emission exceed permitted level of 0.31 g/mile");
}
}
else
{
if(N<=0.39)
{
printf("Emission do not exceed permitted level of 0.39 g/mile");
}
else
{
printf("Emission exceed permitted level of 0.39 g/mile");
}
}
break;
case 3:if(O<=50000)
{
if(N<=0.4)
{
printf("Emission do not exceed permitted level of 0.4 g/mile");
}
else
{
printf("Emission exceed permitted level of 0.4 g/mile");
}
}
else
{
if(N<=0.5)
{
printf("Emission do not exceed permitted level of 1.0 g/mile");
}
else
{
printf("Emission exceed permitted level of 1.0 g/mile");
}
}
break;
case 4:if(O<=50000)
{
if(N<=0.25)
{
printf("Emission do not exceed permitted level of 0.25 g/mile");
}
else
{
printf("Emission exceed permitted level of 0.25 g/mile");
}
}
else
{
if(N<=0.31)
{
printf("Emission do not exceed permitted level of 0.31 g/mile");
}
else
{
printf("Emission exceed permitted level of 0.31 g/mile");
}
}
break;
}
}
No comments:
Post a Comment