티스토리 뷰

<설명>

하나의 integer N을 input으로 받아서 

' You are N year(s) old. ' 라는 메세지를 출력한다.


<Input>

0과 100 사이의 단일한 정수


<Output>

You are N year(s) old.

(N은 입력한 정수)



<소스 코드>

1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>
 
int main (void)
{
    int age;
    scanf ("%d",&age);
    printf ("You are %d year(s) old\n", age);
    return 0;
}
 
 
cs



<설명>

매우 간단한 입출력 문제이다.


'공부 > 2018-2 프로그래밍연습' 카테고리의 다른 글

06. Average  (0) 2018.12.11
05. Data types Practice  (0) 2018.12.11
04. 1 to 10  (0) 2018.12.11
03. Find the Maximum  (0) 2018.12.11
02. Area of Circle  (0) 2018.12.11
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/05   »
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
글 보관함