Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
226 B
1
Indexable
Never
#include <stdio.h> 

void swap(int *a, int *b) 
{ 
    int temp = *a; *a = *b; *b = temp; } void sort(int *a, int *b, int *c) { if (*c < *a && *c < *b) swap(a, c); if (*b < *a && *b < *c) swap(a, b); if (*c < *b) swap(b, c);