Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
i57
dibugger
Commits
b8c1654e
Verified
Commit
b8c1654e
authored
Nov 20, 2020
by
michael.kirsten
Browse files
Removed trailing spaces in example
parent
eea5e8d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/gcd.rdbf
View file @
b8c1654e
...
@@ -4,17 +4,18 @@ PROGRAM{
...
@@ -4,17 +4,18 @@ PROGRAM{
lastExecLine=0
lastExecLine=0
PROGRAMTEXT{
PROGRAMTEXT{
def_blockLen=11
def_blockLen=11
int main(int a, int b) {
int main(int a, int b) {
int i = 0;
int i = 0;
while (a != b && i < 500) {
while (a != b && i < 50) {
i = i + 1;
i = i + 1;
if(a > b)
if(a > b)
a = a - b;
a = a - b;
else
else
b = b - a;
b = b - a;
}
}
return a;
return a;
}
}
}
}
INPUTVALUES{
INPUTVALUES{
a='2'
a='2'
...
@@ -31,17 +32,18 @@ PROGRAM{
...
@@ -31,17 +32,18 @@ PROGRAM{
lastExecLine=0
lastExecLine=0
PROGRAMTEXT{
PROGRAMTEXT{
def_blockLen=11
def_blockLen=11
int main(int b, int a) {
int main(int b, int a) {
int i = 0;
int i = 0;
while (a != b && i < 500) {
while (a != b && i < 50) {
i = i + 1;
i = i + 1;
if(b > a)
if(b > a)
a = a - b;
a = a - b;
else
else
b = b - a;
b = b - a;
}
}
return b;
return b;
}
}
}
}
INPUTVALUES{
INPUTVALUES{
a='4'
a='4'
...
...
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