Need help with C program
#4

Try this:
printf("Computer percentage: %.02f %%\n",(a/total)*100.0);

(%% prints only '%', but it is a special character so you have to write it twice in printf etc)
Reply


Messages In This Thread
Need help with C program - by CopKing123 - 26.09.2017, 12:25
Re: Need help with C program - by ]Kurence[ - 26.09.2017, 12:43
Re: Need help with C program - by CopKing123 - 26.09.2017, 12:50
Re: Need help with C program - by ]Kurence[ - 26.09.2017, 12:54
Re: Need help with C program - by CopKing123 - 26.09.2017, 12:58
Re: Need help with C program - by Gammix - 26.09.2017, 14:00
Re: Need help with C program - by CopKing123 - 26.09.2017, 16:53
Re: Need help with C program - by Dayrion - 26.09.2017, 17:05
Re: Need help with C program - by 10MIN - 26.09.2017, 17:07
Re: Need help with C program - by TakeiT - 28.09.2017, 13:35

Forum Jump:


Users browsing this thread: 1 Guest(s)