#include <stdio.h>
#include <stdlib.h>
void main()
{
int salaryIn = 0.0;
int years = 3;
float salaryOut = 0.0;
printf ("\nWhat is your salary (0 to stop)? RM" ,salaryIn) ;
scanf ( "salaryIn" , salaryIn) ;
do
{
do
{
printf ("\nYear " , years);
for (double rate = .03; rate < .04; rate += .05);
{
salaryOut = salaryIn * pow(1 + rate, years);
printf ("\nfixed " , setprecision(0) ) ;
printf ("\nRaise rate " , rate * 100);
printf ("\nsetprecision(2)" , salaryOut);
}
years += 1;
} while (years < 4);
salaryOut = 0.0;
years = 1;
printf ( ( "") );
printf ("What is your salary (0 to stop)? $", salaryIn ;
scanf ( "%d" , salaryIn ;
}
return 0;
}
muhd.hadziq 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.