C语言请教大神,用eclipse编译c程序的问题
C语言程序:#include<stdio.h>intmain(){floatsum;intn1,n2;printf("Enterthe1stnumber:\n");sca...
C语言程序:#include <stdio.h>int main(){ float sum; int n1,n2; printf ("Enter the 1st number:\n"); scanf ("%d",&n1); printf ("Enter the 2nd number:\n"); scanf ("%d",&n2); sum= n1 + n2; printf ("The average is %f\n", sum/2); return 0;}显示的结果如图,不是我想要的顺序
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询