Created
November 23, 2018 15:09
-
-
Save rkhang7/fcad9762b18c0a1f36ceca32539b6e27 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
| // 200000 tu 1000,2000 va 5000 | |
| #include <stdio.h> | |
| #include <conio.h> | |
| int main() | |
| { | |
| int i,j,k; | |
| long long a,b,c; | |
| for(i=1;i<=200;i++) | |
| { | |
| a=i*1; | |
| for(j=1;j<=100;j++) | |
| { | |
| b=j*2; | |
| for(k=1;k<=40;k++) | |
| { | |
| c=k*5; | |
| if(a+b+c==200) | |
| { | |
| printf("\n%d to 1k %d to 2k %d to 5k",i,j,k); | |
| } | |
| } | |
| } | |
| } | |
| getch(); | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment