Ram starts explaining his son about the growth rate of organic farming and the future needs. Help Ram to display the growth rate, the area covered, pesticides used and other important information by writing a program.
Input format:
The first input is an integer which corresponds to the worldwide market.
The second input is a float which corresponds to the growth rate.
The third input is an integer which corresponds to the area.
The third input is a string which corresponds to the pesticide.
Output format:
Refer the sample output.
Sample Input and Output:
World-wide market
653
Growth rate per annum from 2001-2011
18.1
Area
35460
Natural Pesticide
Neem oil
The World-wide market reached $653 billion with the growth rate of 18.1% in the period 2001-2011. The total area covered was 35460 hectares and Neem oil was used as a natural pesticide.
//PROGRAM
#include<stdio.h>
#include<stdlib.h>
#define max 500
int main()
{
int wwm;
int area;
float gr;
char pest[max]={0};
printf("World-wide market\n");
scanf("%d",&wwm);
printf("Growth rate per annum from 2001-2011\n");
scanf("%f",&gr);
printf("Area\n");
scanf("%d",&area);
printf("Natural Pesticide\n");
getchar();
gets(pest);
printf("The World-wide market reached $%d billion with the growth rate of %.1f%% in the period 2001-2011. The total area covered was %d hectares and %s was used as a natural pesticide.",wwm,gr,area,pest);
return 0;
}
Comments
Post a Comment