#include <stdio.h>
#include <time.h>

int main() {
    clock_t start, end;
    start = clock();
    
    int a = 0x1;
    int b = 0x3;
    
    int sum = a + b;
    
    if (sum == 0x3) {
        printf("Output:0x%X\n",sum);
        printf("Correct\n");
        
        int c = 0x222;
        int d = 0x12F;
        int e = 0xCAA;
        
        int sum1 = c + d + e;
        
        printf("Output:0x%X\n",sum1);
    }
    
    else if (sum == 0x5) {
        printf("Unknown\n");
    }
    
    else if (sum > 0x3) {
        printf("Error\n");
        
        long long f = 0xFAA409611232;
        long long g = 0xFFFFB4476AAB;
        
        long long sum2 = f + g;
        
        printf("Output:%llX\n",sum2);
        
        if (sum2 == 0x1FAA3BDA87CDD) {
            printf("Correct!\n");
        }
    }
    
    end = clock();
    printf("Loop duration:%f second\n", (double)(end - start) / CLOCKS_PER_SEC);
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: