본문 바로가기

Developer

검색하기
Developer
프로필사진 DPhater

  • 분류 전체보기 (46)
    • Programming Language (39)
      • C++ (8)
      • C (28)
      • Python (2)
      • Swift (0)
    • Algorithm (0)
    • AI (1)
    • Security (0)
    • 42seoul (6)
      • Libft (3)
      • get_next_line (0)
      • ft_printf (0)
      • netwhat (0)
      • ft_server (3)
    • Data_structure (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/01   »
일 월 화 수 목 금 토
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
Tags
  • iF
  • 동적할당
  • else if
  • 패킹
  • 42
  • 포인터
  • python
  • 42서울
  • ft_server
  • 42Seoul
  • Class
  • 함수
  • list
  • phpmyadmin
  • 42cursus
  • libft
  • jupyter 단축키
  • C++
  • 구조체
  • vs코드 단축키
  • 자료형
  • nginx
  • Double
  • for
  • docker
  • cout
  • float
  • 2차원배열
  • While
  • C언어
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록반복문 (1)

Developer

14.(C언어) 반복문_for,while

반복문은 같은 코드를 여러번 수행하기위해 사용한다. ​ for for(초기식; 조건식; 변화식) { 코드 } for(초기식;조건식;변화식) 부분을 루프 선언문이라 하고 중괄호 부분을 루프 본체라고 부른다. 만약 반복할 코드가 한 줄이라면 괄호는 생략 가능하다. for 반복문이 반복을 수행하는 동작 절차는 다음과 같다. 1.초기식과 조건식을 비교 2.참이라면 코드 실행 / 거짓이라면 루프 본체 아래의 코드 진행 3.변화식 적용 4.조건식 비교 2번 으로 돌아감 #include int main(){ int i; for(i=0;i

Programming Language/C 2020. 8. 1. 21:20
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바