Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KimTaeeun
Python
Commits
02d87ee9
Commit
02d87ee9
authored
6 years ago
by
KimTaeeun
Browse files
Options
Downloads
Patches
Plain Diff
테스트용!
parent
70735796
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
5_난수프로그램.cpp
+8
-5
8 additions, 5 deletions
5_난수프로그램.cpp
with
8 additions
and
5 deletions
5_난수프로그램.cpp
+
8
−
5
View file @
02d87ee9
//난수 프로그램
//201421110 미디어학과 김태은
//난수 프로그램
//201421110 미디어학과 김태은
// test용이다!!
#include
<stdio.h>
#include
<stdlib.h>
...
...
@@ -22,7 +24,7 @@ int main()
if
(
i
%
10
==
9
)
printf
(
"
\n
"
);
}
printf
(
"
\n
숫자를
입력하세요
\n
"
);
printf
(
"
\n
숫자를 입력하세요
\n
"
);
scanf_s
(
"%d"
,
&
num
);
...
...
@@ -51,9 +53,9 @@ int main()
}
if
(
min_val
>
0
)
printf
(
"
큰 수 중
제일 가까운 값 : %d"
,
arr
[
index
]);
printf
(
"
큰 수 중 제일 가까운 값
: %d"
,
arr
[
index
]);
else
printf
(
"
값을 찾을
수 없습니다."
);
printf
(
"
값을 찾을 수 없습니다
."
);
return
0
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment