scanf(“%f%%”, &percent);
what is the %% used for ?
scanf(“%f%%”, &percent);
what is the %% used for ?
so taht if i enter 56 % the percentage sign is stored or removed ?
read scanf - C++ Reference
Then code the program and test the results.
Tim S.
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson
% is used for formatting information by scanf, but sometimes you also want to print out "%" as a character - to do that you use it twice '%%' like in your code.
ummmm.... that should have read "input" rather than "print out"
ummmmm.... actually sorry, that's tosh just ignore it all. need to cut down on the multi-tasking and pay attention!!