M1RAI

EX3

Oct 23rd, 2020
809
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 nb;
  7.     float o,k,m;
  8.     printf("\n donner un nombre en bit");
  9.     scanf("%d",&nb);
  10.     o = nb/8;
  11.     k = o/1000;
  12.     m = k/1000;
  13.     printf("\n %d bits = %f octets \n %f kilo octets \n %f Mega octets",o,k,m);
  14.     return 0;
  15. }
RAW Paste Data