double new_amount;
printf("enter new_amount:");
scanf("%lf",&new_amount);
printf("Amount entered is%lf",new_amount);

where is the question?

Whats the problem here ????

looks an awfully lot like my old crap C code.

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.