Måske:
#include <stdio.h>
#include <time.h>
int main()
{
int Counter = 0;
int a;
time_t Start;
time(&Start);
do
{
printf("Opgave 1: Hvad er 98 gange 34?\\n\\nSkriv svaret:\\n");
scanf("%d", &a);
Counter++;
if(a == 3332)
{
double Time;
time_t End;
time(&End);
Time = difftime(End, Start);
printf("Forsoeg: %d Tid: %f sekunder\\n", Counter, Time);
printf("\\nRigtigt!\\nVidere til næste opgave..\\n\\n________________________________________________________________________________\\n\\n");
}
else
{
printf("\\nForkert!\\nOm igen..\\n\\n\\a________________________________________________________________________________\\n\\n");
}
}
while (1);
}