Skip to content

Instantly share code, notes, and snippets.

@rkhang7
Created November 23, 2018 15:09
Show Gist options
  • Select an option

  • Save rkhang7/fcad9762b18c0a1f36ceca32539b6e27 to your computer and use it in GitHub Desktop.

Select an option

Save rkhang7/fcad9762b18c0a1f36ceca32539b6e27 to your computer and use it in GitHub Desktop.
// 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