fork download
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. int num1,num2,num3;
  6. printf("num1,num2,num3= ? \n");
  7. scanf("%d%d%d",&num1,&num2,&num3);
  8. printf("\nthe sum of %d ,%d and %d is: %d\n",num1,num2,num3,num1+num2+num3);
  9. printf("\nthe avg of %d ,%d and %d is: %d\n",num1,num2,num3,(num1+num2+num3)/3);
  10. return 0;
  11.  
  12. }
  13.  
Success #stdin #stdout 0s 2172KB
stdin
Standard input is empty
stdout
num1,num2,num3= ? 

the sum of 47 ,134518956 and 134514178 is: 269033181

the avg of 47 ,134518956 and 134514178 is: 89677727