Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tanton
/
programmeerimine_1
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
63a61ede
authored
Sep 11, 2020
by
tonis2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uuenda kommentaare
parent
d44797a4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
panga_automaat/automaat
panga_automaat/automaat.c
panga_automaat/automaat
View file @
63a61ede
No preview for this file type
panga_automaat/automaat.c
View file @
63a61ede
/**
* File: automaat.c
* Author: Tõnis Anton
* Created: 11.09.2020
* Last edit: 11.09.2020
*
* Description: Panga automaat, mis vahetab kasutaja 100 raha ühikut väiksemateks ühikuteks.
*
*/
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
...
@@ -111,6 +121,7 @@ int main(void)
...
@@ -111,6 +121,7 @@ int main(void)
}
}
}
}
//Kui pangas on kupüüre vales koguses ja kasutajale ei saa täpselt 100-t tagasi anda siis jätame protsessi katki.
if
(
wrong_amount_of_bills
)
if
(
wrong_amount_of_bills
)
{
{
printf
(
"Masinal pole piisavalt vajatud kupüüre, et summat vahetada
\n
"
);
printf
(
"Masinal pole piisavalt vajatud kupüüre, et summat vahetada
\n
"
);
...
...
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