Triplet,use C program