Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
test-plz-work
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ahmed El Shatshat
test-plz-work
Commits
6a14798b
Commit
6a14798b
authored
6 years ago
by
Bjon
Browse files
Options
Downloads
Plain Diff
ASD
parents
b6dd410d
9eb49de6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
counting.c
+4
-4
4 additions, 4 deletions
counting.c
with
4 additions
and
4 deletions
counting.c
+
4
−
4
View file @
6a14798b
...
...
@@ -2,11 +2,11 @@
int
main
()
{
unsigned
int
num
=
1
;
while
(
num
<=
10
)
//Please write a while loop to count 1 to 10, and print out every number one per line.
for
(
unsigned
int
i
=
1
;
i
<=
10
;
i
++
)
{
printf
(
"%d
\n
"
,
num
);
num
++
;
printf
(
"%d
\n
"
,
i
);
}
return
0
;
}
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