• Source
    1. #include <stdio.h>
    2. #include <stdlib.h>
    3. #include <math.h>
    4.  
    5. int main()
    6.  
    7. {
    8. float gbitsec,gbitmin,gbitora,gbytemin,gbyteora,kbytemin;
    9.  
    10. gbitmin=1*60;
    11. gbitora=1*3600;
    12. gbytemin=0.125*60;
    13. gbyteora=0.125*3600;
    14. kbytemin=0.125*(pow(2,20))*6;
    15. printf ("1 Gbit/sec sono : %.2f Gbit/minuto ; %.2f Gbit/Ora ; %.2f GByte/min ;\n\n %.2f GByte/ora ; %.2f KByte/min \n" ,gbitmin,gbitora,gbytemin,gbyteora,kbytemin);
    16. return 0;
    17. }