26.09.2017, 12:54
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)
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)