# include int main ( ) { int e; float x; printf ( "Enter a number to be rewritten in scientific notation: " ); scanf ( "%f", &x ); printf ( "Input value is %g\n", x ); e = 0; while ( 10.0 <= x ) { x = x / 10.0; e = e + 1; } while ( x < 1.0 ) { x = x * 10.0; e = e - 1; } printf ( "Scientific notation is %f * 10^(%d)\n", x, e ); return 0; }