🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.advocacy
Article #250

���� ���� �ּ���,,,,,,

#250
From: haryang
Date: Mon, 27 Mar 2000 00:00
33 lines
1491 bytes
���� �ڹٸ� ����ϰ� �ִµ� �� ���� �ʳ׿� ���� 
�����ּ���....����.....


//���� 56���� ī�� ����� 6���� ī�带 �̴� ����� ����
 (56*55*54*53*52*51)/(1*2*3*4*5*6*)�̴�.
56���� ī�� ����� n���� ī�带 �̴� ���α׷��� �ۼ��ϰ�,�̶� ���
���� ȭ�鿡 �ﵵ�� �ϰ� n �� 56���� Ŭ���� "�����Ҽ� ���"��� ǥ��
�ϼ���....




class Aa{
public static void main(String args[]){
int i=1;
int k=1;
int sum;
int n=Integer.parseInt(args[0]);
 if(n<=56){
   for(int a=56;a>=57-n;a--){
       k=k*a;
          }
   for(int b=1;b<=n;b++){
       i=i*b;    
         }
       sum=k/i;
   System.out.println("��="+sum);
   }
 else
System.out.println("�����Ҽ� ����");
}
}
Technical Details
Message-ID: <8bnver$2v2$1@news.netple.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: Korean,KSC
X-Google-Thread: 11062e,692edfcb8f55d1e7,start
X-Google-Attributes: gid11062e,public
X-Google-Thread: fdb77,692edfcb8f55d1e7,start
X-Google-Attributes: gidfdb77,public
From: haryang@hitel.net
Subject: ���� ���� �ּ���,,,,,,
Date: 2000/03/27
Message-ID: <8bnver$2v2$1@news.netple.com>
X-Deja-AN: 603001921
Organization: NetPle Usenet Service
X-User-Address: 210.114.22.149
Newsgroups: comp.lang.java.advocacy,han.comp.lang.java