Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main =>
- A = read_int(),
- B = read_int(),
- C = read_int(),
- D = ( B * B - 4 * A * C ),
- X1 = ( -1 * B - sqrt( D ) ) / ( 2 * A ),
- X2 = ( -1 * B + sqrt( D ) ) / ( 2 * A ),
- if D == 0 then
- printf( "%7.5f%n", X1 )
- else printf( "%7.5f %7.5f%n", X1, X2 )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement