mirror of
https://github.com/Soccera1/agg.git
synced 2025-09-19 13:18:38 +02:00
maybe done?
This commit is contained in:
parent
edc6650c12
commit
b43cfdc1d7
1 changed files with 2 additions and 6 deletions
|
@ -4,6 +4,7 @@
|
|||
#include <time.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
int main(void) {
|
||||
srand(time(NULL));
|
||||
|
||||
|
@ -115,12 +116,7 @@ int main(void) {
|
|||
|
||||
float accuracy;
|
||||
|
||||
accuracy = score / questioncount;
|
||||
if (accuracytype == 1) {
|
||||
accuracy = (int)accuracy * 100;
|
||||
} else {
|
||||
accuracy = accuracy * 100;
|
||||
}
|
||||
accuracy = (float)score / questioncount * 100;
|
||||
|
||||
printf ("Your score is %d!\n", score);
|
||||
if (score >= 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue