fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int byte;
  6. printf("Enter number of bytes: ");
  7.  
  8. scanf("%d", &byte);
  9.  
  10. printf("%d bytes equal %d bits.\n", byte , byte*8);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0.02s 25640KB
stdin
Standard input is empty
stdout
#include <stdio.h>

int main()
{
    int byte;
    printf("Enter number of bytes: ");
    
    scanf("%d", &byte);

    printf("%d bytes equal %d bits.\n", byte , byte*8);
    return 0;
}