fork download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. int a, b;
  5. scanf("%d%d", &a, &b);
  6. if(b == 0){
  7. printf("0");
  8. }
  9. else{
  10. printf("%d %d %d %.2f %d", a + b, a - b, a * b, 1.0 * a / b, a % b);
  11. }
  12. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
82951276 82885748 -1972171200 2530.78 25592