별의 공부 블로그 🧑🏻‍💻
728x90
728x170

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>
 
int main() 
{
    int count = 0, input = 0;
    int ary[10= {0123443256};
    printf("Input a number : ");
    scanf("%d"&input);
 
    for(int i = 0; i < sizeof(ary); i++) {
        if (input == ary[i]) {
            count++;
        } // end of if
    } // end of for
    
    printf("The number of the same number which you input (%d) in Array ary is %d \n", input, count - 1);
cs
728x90
그리드형(광고전용)
⚠️AdBlock이 감지되었습니다. 원할한 페이지 표시를 위해 AdBlock을 꺼주세요.⚠️
starrykss
starrykss
별의 공부 블로그 🧑🏻‍💻


📖 Contents 📖