Computer Science, asked by kushagranayak1, 10 months ago

Please do the program in simple form according to class 9th

Attachments:

Answers

Answered by thebestfoodof2020
0

Answer:

Explanation:

Use image to text converter and open it in word

then copy paste what you want

Hope it helps

Answered by saisravyat99
0

Answer:

HEY THERE !!

Explanation:

#include<stdio.h>

#include<string.h>

int main()

{

       int age;

       long int income;

       char s[100];

       scanf("%d %ld",&age,&income); //taking age and income as input

       gets(s);//taking name as input. (We can even use scanf here.)

       if(age>60)

       printf("Wrong Category");

       else

       {

                 if(income<=250000)

                 printf(" %s must pay Nil",s);

                 else if(income>250000 && income<=500000)

                  printf("%s must pay %ld",s,((income-160000)*10)/100);

                 else if(income>500000 && income<=1000000)

                  printf("%s must pay %ld",s,(((income-500000)*20)/100)+34000);

                  else

                  printf("%s must pay %ld",s,(((income-1000000)*30)/100)+94000);

        return 0;

}

Similar questions