2,三位数取每位gw = data % 10; bw = data / 100; sw = data % 100 / 10; 3,4,调用库函数#include <math.h> sin(变量) sqrt(变量)//开根号