#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int main()
{
	float a, b=1.5, c, d, e, f;
	printf("Ano atual:");
	scanf("%f",&f);
	printf("\nSalario atual:");
	scanf("%f", &a);
	
	do	
	{
		c++;
		e=a+(a*b/100*c);
		d= 1996+c;
        printf("\n\nO Salario e: %.2f no ano %.f", e , d);
        b=b*2;
	}
    while(d < f);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: