upgrade and develop

  • 홈
  • 태그
  • 방명록

2026/08/03 1

[C언어] 05. 반복문

같은 작업을 여러 번 해야 할 때, 코드를 여러 번 복사하는 대신 반복문을 쓴다. "1부터 100까지 더하기"를 덧셈 100줄로 쓰지 않고 몇 줄로 끝내는 것이다. C의 반복문에는 while, do~while, for 세 가지가 있다. 종류특징while조건이 참인 동안 반복 (반복 횟수를 모를 때)do ~ while일단 한 번 실행한 뒤 조건 검사 (최소 1회 보장)for정해진 횟수만큼 반복1. while 문조건이 참인 동안 중괄호 안을 반복한다. 조건을 먼저 검사하므로, 처음부터 거짓이면 한 번도 실행되지 않는다(0번 이상).while (조건) { 수행 문장;} 반복 횟수를 미리 알 수 없을 때(예: "0이 입력될 때까지") 적합하다.int n;while (1) { /..

language/c 2026.08.03
이전
1
다음
더보기
프로필사진

upgrade and develop

https://github.com/undcore

  • 분류 전체보기 (61) N
    • language (24) N
      • c (5) N
      • c++ (2)
      • c# (1)
      • java (3)
      • python (0)
      • html (2) N
      • visual_basic (1)
      • blazor (9) N
      • android studio (1)
    • data (8) N
      • database (3)
      • oracle (5) N
      • postgresql (0)
      • sql_server (0)
    • computer_science (18) N
      • algorithm (4) N
      • data_structure (2)
      • os (2)
      • network (5)
      • security (2)
      • computer_architecture (3)
    • license (0)
      • 정보처리기사 (0)
      • 네트워크관리사 (0)
    • study (11) N
      • git&github (1)
      • server (7)
      • memo (3) N

Tag

blazor, SQLServer, github actions, 배열, 인터넷활용, Csharp, switch문, Java, 컴퓨터네트워크, cloudflare, for문, 인터넷보안, Algorithm, SQL, Frontend, ubuntu, 순서도, aspnetcore, RAZOR, 조건문, DependencyInjection, 데이터베이스, c언어, c프로그래밍, docker, 반복문, DOTNET, loginservice, Home Server, 오라클,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/08   »
일 월 화 수 목 금 토
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Daum Corp. All rights reserved.

티스토리툴바