fork download
  1. #include<stdio.h>
  2. #include<math.h>
  3. void main()
  4. {
  5. int a,b;
  6. float c,d;
  7. printf("enter the value of a and c:> ");
  8. scanf("%d%f",&a,&c);
  9. b=abs(a);
  10. d=fabs(c);
  11. printf("Absolute of a = %d\n and absolute of c = %f\n",b,d);
  12.  
  13. }
  14.  
Runtime error #stdin #stdout 0s 2172KB
stdin
Standard input is empty
stdout
enter the value of a and c:>  Absolute of a = 3534596
 and absolute of c = 16419203842048.000000