public static void initial(cesius cd, fah fa) { cd.Tempeture = int.MinValue; fa.Tempeture = int.MinValue; cchanger0 = 0; fahchanger0 = 0; }
public static void productf(cesius cd, fah fa) { int pipe = 9 * cd.Tempeture; int pipe2 = pipe / 5; fa.Tempeture = pipe2 + 32; }
public static int check(cesius cd, fah fa) { if (cchanger0 == 0) { productc(cd, fa); return(0); } else if (fahchanger0 == 0) { productf(cd, fa); return(1); } return(-1); }
public static int check(cesius cd, fah fa) { if (cchanger0 == 0) { productc(cd, fa); return 0; } else if (fahchanger0 == 0) { productf(cd, fa); return 1; } return -1; }
public static void productc(cesius cd, fah fa) { cd.Tempeture = (5 * (fa.Tempeture - 32)) / 9; }