fork download
  1. #pragma warning(disable: 4996)
  2.  
  3. #include <stdio.h>
  4. #include <conio.h>
  5. #include <Windows.h>
  6.  
  7. int main()
  8. {
  9. sonut:
  10.  
  11. int nnbsxe, nnsnut = 0, nnbsx;
  12. printf("Nhap bien so xe: ");
  13. scanf("%d", &nnbsxe);
  14.  
  15. nnbsx = nnbsxe;
  16.  
  17. nnsnut += (nnbsxe % 10);
  18. nnbsxe /= 10;
  19.  
  20. nnsnut += (nnbsxe % 10);
  21. nnbsxe /= 10;
  22.  
  23. nnsnut += (nnbsxe % 10);
  24. nnbsxe /= 10;
  25.  
  26. nnsnut += (nnbsxe % 10);
  27. nnbsxe /= 10;
  28.  
  29. nnsnut += nnbsxe;
  30.  
  31. nnsnut %= 10;
  32.  
  33. nnbsx >= 10000 && nnbsx <= 99999 ?
  34. printf("\nSo nut: %d nut.\n\n", nnsnut) && (nnsnut <= 4 ? printf("Bad!") : nnsnut >= 8 ? printf("Excelent!") : printf("Good!")) :
  35. printf("\n\aError! Please check again!");
  36.  
  37. printf("\n\nPress 'c' to continue!\nPress any key to exit!");
  38.  
  39. char x = getch();
  40. if (x == 'c' || x == 'C')
  41. {
  42. system("cls");
  43. goto sonut;
  44. }
  45.  
  46. return 0;
  47. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
 #pragma warning(disable: 4996)
 
prog.c:4:19: fatal error: conio.h: No such file or directory
 #include <conio.h>
                   ^
compilation terminated.
stdout
Standard output is empty