The fourth chapter is two times ~

xiaoxiao2021-03-06  38

The output result should be: (note this "_" represents 1 space _ _ representative 2) a = _3_ _b = _4_ _c = _5x = 1.200000, y = 2.400000, z = -3.600000x y = _3.60_ _y Z = -1.20__Z x = -2.40U = _51274_ _n = _ _ _128765C1 = 'a'_or_97 (asCll) C2 =' b'_or_97 (asCLL) Write program

#include main () {INT A = 3, B = 4, c = 5; float x = 1.2, y = 2.4, z = -3.6; long u = 51274, n = 128765; char C1 = 'A', C2 = 'b'; Printf ("A =% 2D B =% 2D C =% 2D / N", A, B, C); Printf ("x =%. 6f, y =%. 6f , z =%. 6f / n ", x, y, z); Printf (" x y =% 4.2F y z =% 4.2F Z x =% 4.2F / n ", x y, y, y, y Z, Z X); Printf ("U =% 6LD N =% 9LD / N", U, N); Printf ("C1 =% C OR% D (ASCLL) / N", C1, C2); Printf ("C2 =% C OR% D (ASCLL) / N", C1, C2);} --------------------------- ------------------------------ Enter a fancy temperature, output a Celsius temperature, formula is c = 5/9 * ( F-32), output 2 decimal writes

Main () {Int C, F; Float C, F; Scanf ("% 2F", & F); C = 5/9 * (F-32); Printf ("%. 2f / n", c);} I feel that I feel like this, I feel that the integer is integrated, for example 34, or may be a real number, such as 34.5, and the output is to retain 2 decimals, so what should I change?

转载请注明原文地址:https://www.9cbs.com/read-69463.html

New Post(0)