Wednesday, November 14, 2018

problem 3

Demand for organic food

The demand for organic food is growing so fast that consumer demand is outstripping some domestic supplies. 


The demand for organic food increases every year by 8.9%. 
Write a program to find the increase in revenue after 3 years. Given the revenue in the first year is ‘x’ crores. 

Input Format: 
The first line of the input is an integer that corresponds to the ‘x’ value. 

Output Format: 
Output is a float value that corresponds to the revenue after 3 years, rounded off to 2 decimal places. 

Sample Input: 

Sample Output: 
5.17

1 comment:

Anonymous said...

#include
int main()
{
int x,i;
float rev;
scanf("%d",&x);
rev=x;
for(i=0;i<3;i++)
{
rev=rev*(1.089);
}
printf("%.2f",rev);


return 0;

}

 DBMS class materials click here to join the class room  click here  https://www.youtube.com/channel/UC93Sqlk_tv9A9cFv-QjZFAQ