/* program to double input numbers */ #include main() { double x,y; printf( " x = ? " ); scanf("%lf", &x); y = 2.0*x; printf( " twice %g is %g \n", x, y ); }