fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int ADCValue = 203; // 2.03
  5. printf("%d.%d", ADCValue / 100, ADCValue % 100);
  6. puts("\n");
  7. printf("%d.%02d", ADCValue / 100, ADCValue % 100);
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
2.3

2.03