Hi, first post here and a very big n00b at programming, im learning it for my A/AS-levels at school, so [please go easy on me. I dont know a lot thats why im here.

Basically, im sure theres obviously something VERY big im missing here, if staements, heres the code

Code:
#include <stdio.h>
#include <cstdlib>

int main()

{
    
    int first;
    int second;
    int third;
    
    scanf("%d", &first);
    scanf("%d", &second);
    scanf("%d", &third);
    
    if((first > second) && (second > third));
              printf("%d", first);

    if((first > third) && (second < third));
              printf("%d", first);



    if((second > first) && (first > third));
               printf("%d", second);

    if((second > third) && (first < third));
               printf("%d", second);



    if((third > second) && (second > first));
              printf("%d", third);
 
    if((third > first) && (second < first));
              printf("%d", third);
    
    
}
All that happens is that it prints out everythign i have defined and entered, it prints out the 3 numbers twice, obviously because the printf's are not relating to the if staements at all, whats missing or there thats worng. Can you help??

Thanks, dragon2309