fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int a,b,c,y;
  7. printf("enter your 1 mark: \n");
  8. scanf("%d",&a);
  9. printf("enter your 2 mark: \n");
  10. scanf("%d",&b);
  11. printf("enter your 3 mark: \n");
  12. scanf("%d",&c);
  13. printf("total values: %d\n",y=a+b+c);
  14. printf("biggest value is: %d\n",saro(a,b,c));
  15. return 0;
  16. }
  17.  
  18. int saro(int a,int b,int c)
  19. {
  20.  
  21. int y;
  22.  
  23. if (a > b && a > c)
  24. {
  25. y=a;
  26. }
  27. else if (b > a && b > c)
  28. {
  29.  
  30. y=b;
  31.  
  32. }
  33.  
  34.  
  35. else
  36. {
  37. y=c;
  38. }
  39. return y;
  40. }
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
Success #stdin #stdout 0s 5504KB
stdin
Standard input is empty
stdout
enter your 1 mark: 
enter your 2 mark: 
enter your 3 mark: 
total values: -1705165236
biggest value is: 32764