using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace B014 { class Program { static void Main(string[] args) { Console.Write("n!을 계산하고자 합니다. n을 입력하세요 : "); int n = int.Parse(Console.ReadLine()); int fact = 1; for (int i = 1; i
분류 전체보기
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace B013 { class Program { static void Main(string[] args) { DrawPyramid(3); DrawPyramid(5); DrawPyramid(7); } private static void DrawPyramid(int n) { for(int i = 1; i
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace B012 { class Program { static void Main(string[] args) { int x, y, z; Console.Write("첫번쨰 값을 입력하세요 : "); x = int.Parse(Console.ReadLine()); Console.Write("두번쨰 값을 입력하세요 : "); y = int.Parse(Console.ReadLine()); Console.Write("세번쨰 값을 입력하세요 : "); z = int.Parse(Console.ReadLine..
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace B011 { class Program { static void Main(string[] args) { int[] a = new int[10]; Random r = new Random(); for (int i = 0; i 0; i--) for (int j = 0; j < i;..
#include using namespace std; void Hanoi(int n, char from, char via, char to) { //재귀함수는 반드시 끝나느 조건이 있어야 한다 if (n == 1) { cout