using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication6
{
class Program
{
static void Main(string[] args)
{
int a = 0, b = 0;
for (a = 2; a <= 100; a++)
{
for (b = 2; b <= 9; b++)
{
if ((a == b) || (b == 9))
{
Console.WriteLine(a);
break;
}
if (0==(a%b))
{
break;
}
}
}
}
}
}
가장 쉽게 짜는 방법
'.NET' 카테고리의 다른 글
Ajax와 DOM이용해서 웹 구현 1 (0) | 2007.08.20 |
---|---|
css 화면 클릭 => 새로운 레이어 띄우기 (2) | 2007.08.18 |
오버로딩과 오버라이딩 (0) | 2007.08.17 |
3X3 마방진 (1) | 2007.08.14 |
Delegate (0) | 2007.08.14 |