Help me in solving CHFRICH problem

My issue

My code

#include<stdio.h>
int main (){
    int x(3);
    while(a--)
    scanf("%d x");
   else 
    int x=100,y=200,z=10;
    scanf("%d%d%d x,y,z");
    
    
}

Problem Link: CodeChef: Practical coding for everyone

@avulaasha1234
your code doesn’t make any sense bro.
The question demands what amount of year chef need to reach upto B million Dollars as its net worth. so all he need to make B-A more money .