kriscross07 / atom-gpp-compiler

An atom package that allows you to compile and run C++ and C within the editor.
https://atom.io/packages/gpp-compiler
80 stars 228 forks source link

I have a same issue too #406

Open hoang1904 opened 2 years ago

hoang1904 commented 2 years ago

i have a some problems anyones help mee :(((

include

int soChuSo(int n){ if(n==0) return 0; return 1+soChuSo(n/10); }

int tongChuSo(int n){ if(n>0) return n%10+tongChuSo(n/10); return 0; }

int main(){ int n; printf("Nhap so nguyen n: "); scanf("%d",&n); printf("So n co %d chu so\n",soChuSo(n)); printf("Tong cac chu so cua n la: %d\n",tongChuSo(n)); return 0; } image

Originally posted by @hoang1904 in https://github.com/kriscross07/atom-gpp-compiler/issues/243#issuecomment-1041564239

hoang1904 commented 2 years ago

I write it on VScode and it fails but on Dev C it doesn't