xxxxxxxxxx
//The National Earthquake Information Center(NEIC) has the following criteria to determine the earthquake's damage.
//Here are the given richter scale criteria and their corresponding characterization.
//The richter scale serves as the input data and the characterization as the output information.
//Richter Numbers(RN): 1(RN<5.0), 2(RN>=5.0 - RN<5.5), 3(RN>=5.5 - RN<6.5), 4(RN>=6.5 - RN<7.5), 5(RN>=7.5).
//Characterization: 1(Little or No damage), 2(Some damage), 3(Serious damage), 4(Disaster), 5(Catastrophe).
#include<stdio.h>
main()
{
float rn;
printf("Must only put numeric number (whole or have decimals)");
printf("\nEnter the earthquake's damage: ");
scanf("%f",&rn);
if(rn>=7.5)
printf("\nCATASTROPHE!!!\n");
else if(rn>=6.5&&rn<7.5)
printf("\nDISASTER!\n");
else if(rn>=5.5&&rn<6.5)
printf("\nSERIOUS DAMAGE\n");
else if(rn>=5.0&&rn<5.5)
printf("\nSOME DAMAGE\n");
else if(rn<5.0)
printf("\nLittle or No damage\n");
else
printf("\nWRONG INPUTTED!\n");
}