fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a,b;
  6. scanf("%d%d",&a,&b);
  7. printf("a+b=%d\n",a+b);
  8. printf("平均值=%5.2f",(a+b)/2.0);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 5320KB
stdin
13 28
stdout
a+b=41
平均值=20.50