fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. long long n;
  5. scanf("%lld", &n);
  6.  
  7. if (n < 10) {
  8. printf("Tidak ada\n");
  9. } else {
  10. while (n >= 100) {
  11. n /= 10;
  12. }
  13. printf("%lld\n", n);
  14. }
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
41