pastebin

Paste Search Dynamic
Recent pastes
cube abs
  1. #include <stdio.h>
  2.  
  3. int abs(int x){
  4.     return (x > 0) ? x: -x;
  5. }
  6. int cube(int x){
  7.     return x*x*x;
  8. }
  9. int main(void) {
  10.     int a,b;
  11.     a = -5;
  12.     b = cube(abs(a));
  13.     printf("The cube of the absolute value of is %d", a, b);
  14.         return 0;
  15. }
  16.  
Parsed in 0.004 seconds