fork download
  1. #include <stdio.h>
  2.  
  3. a=90;
  4. b=80;
  5. c=100;
  6.  
  7. int main(void) {
  8. printf("kor=%d \n", a);
  9. printf("mat=%d \n", b);
  10. printf("eng=%d \n", c);
  11. printf("sum=%d \n", a+b+c);
  12. printf("avg=%d", (a+b+c)/3);
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 4528KB
stdin
Standard input is empty
stdout
kor=90 
mat=80 
eng=100 
sum=270 
avg=90