You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
420 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*eh2-1.c*/
#include <stdio.h>
main()
{
int a,b;
long m,n;
float p,q;
scanf( ); /*以"a=4,b=8"的形式输入a和b的值*/
scanf( ); /*以"4.235.7"的形式输入p和q的值*/
scanf( ); /*以"234 567"的形式输入m和n的值*/
printf(" ",a,b,m,n); /*每个数的输出宽度为5两数之间用逗号隔开*/
printf(" ",p,q); /*每个数的输出宽度为6小数位数为3*/
}