From 4f80075ebc487298a9b155c323e4054b80347bf3 Mon Sep 17 00:00:00 2001 From: pfvx5hjso <6687900@qq.com> Date: Thu, 5 Oct 2023 15:11:59 +0800 Subject: [PATCH] ADD file via upload --- eh2-1.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 eh2-1.c diff --git a/eh2-1.c b/eh2-1.c new file mode 100644 index 0000000..aa47cd4 --- /dev/null +++ b/eh2-1.c @@ -0,0 +1,14 @@ +/*eh2-1.c*/ +#include +main() +{ + int a,b; + long m,n; + float p,q; + + scanf( ); /*以"a=4,b=8"的形式输入a和b的值*/ + scanf( ); /*以"4.23,5.7"的形式输入p和q的值*/ + scanf( ); /*以"234 567"的形式输入m和n的值*/ + printf(" ",a,b,m,n); /*每个数的输出宽度为5,两数之间用逗号隔开*/ + printf(" ",p,q); /*每个数的输出宽度为6,小数位数为3*/ +}