SHARE
TWEET

functionTwoValues

Nayeemzaman Dec 19th, 2018 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2.  
  3. int bigBigNumbers(int n,int *sqr,int *cube)
  4. {
  5.     *sqr = n*n;
  6.     *cube = n*n*n;
  7.     return 0;
  8. }
  9. int main()
  10. {
  11.     int n,sqr,cube;
  12.     scanf("%d",&n);
  13.     bigBigNumbers(n,&sqr,&cube);
  14.     printf("Square = %d\n",sqr);
  15.     printf("Cube = %d\n",cube);
  16.     return 0;
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top