Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
grtrol
/
IAX0583
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bd2c1f8c
authored
Sep 19, 2017
by
grtrol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
praktikum3
parent
904cba83
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
praktikum3/ArgoUML1.zargo
praktikum3/tund3.2.c
praktikum3/ArgoUML1.zargo
0 → 100644
View file @
bd2c1f8c
File added
praktikum3/tund3.2.c
0 → 100644
View file @
bd2c1f8c
#include <stdio.h>
int
main
(
void
)
{
int
S
=
0
;
int
i
=
0
;
int
K
=
0
,
N
;
do
{
printf
(
"sisesta rea pikkus:
\n
"
);
scanf
(
"%d"
,
&
N
);
}
while
(
N
<=
0
);
int
A
[
N
];
do
{
printf
(
"sisesta %d : "
,
i
);
scanf
(
"%d"
,
&
K
);
A
[
i
]
=
K
;
i
++
;
}
while
(
i
<
N
);
i
=
0
;
do
{
S
=
S
+
A
[
i
];
i
++
;
}
while
(
A
[
i
]
>
0
&&
i
<
N
);
printf
(
"tulemus : %d
\n
"
,
S
);
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment