Created
November 24, 2018 09:12
-
-
Save rkhang7/97f48baa20925e17678acb4b86bf2b88 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // tim n nho nhat sao cho 1+2...n<100000 | |
| #include <stdio.h> | |
| #include <conio.h> | |
| int main() | |
| { | |
| long s=0,i; | |
| for(i=1;i<=10000;i++) | |
| { | |
| s=s+i; | |
| if(s>10000) | |
| break; | |
| } | |
| printf("So can tim la : %d\t",i); | |
| getch(); | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment