Agathiyan is the Chief In charge for carrying out World Economic Survey in India.As a part of survey his team have collected the salaries of the citizens of India. The Salaries of different people are in different number of digits.Now Agathiyan would like to classify the earnings of the citizen based on the number of digits of his/her salary into 5 different categories as follows:
#include<stdio.h>
#include<stdio.h>
int main()
{int N;
scanf("%d",&N);
if(N<10) printf("Insufficient Earning");
else if (N<100) printf("Very Low Earning");
else if (N<1000) printf("Low Earning");
else if (N<10000) printf("Sufficient Earning");
else printf("High Earning");
return 0;
}
Comments
Post a Comment