daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int Nombre1,Nombre2,ValAbs;
  7.  
  8.     printf("Encodez le premier nombre : ");
  9.     scanf("%d",&Nombre1);
  10.  
  11.     printf("Encodez le deuxieme nombre : ");
  12.     scanf("%d",&Nombre2);
  13.  
  14.     ValAbs = Nombre1-Nombre2;
  15.  
  16.     if(ValAbs<0)
  17.     {
  18.         ValAbs = ValAbs*-1;
  19.         printf("La valeur absolue de la difference est : %d",ValAbs);
  20.     }
  21.     else
  22.     {
  23.         printf("La valeur absolue de la difference est : %d",ValAbs);
  24.     }
  25.     return 0;
  26. }
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