Quick actions

cmd+k|ctrl+k

Navigation

Languages

Yet Another Inequalities !

Snippet info

Language

C

Visibility

public

Author

hafizewp

Created

2019-11-30T08:52:22Z

Updated

2019-11-30T08:52:22Z

#include <stdio.h>
#include <math.h>

int main() {
    
    int angka;
    int a=0, b=0, c=0;
    
    scanf("%d", &angka);
    
    for (int i=0; i<angka; i++) {
        scanf("%d %d %d", &a, &b, &c);
        printf("Case #%d: ", i+1);
        int hasil = pow(a, b);
        hasil = (float)b * log(a);
        if (hasil>=c) {
            printf(">\n");
        }else{
            printf("<\n");
        }
    }
    
    return 0;
}
INFO