diff options
| author | Kathy Gray | 2014-10-27 18:02:03 +0000 |
|---|---|---|
| committer | Kathy Gray | 2014-10-27 18:02:03 +0000 |
| commit | dcc835cc3979ca2b07c2bff50bfa7928eab8681c (patch) | |
| tree | c1d139244ae4c85a9848530843767103828d6d5f /src/test/hello4.c | |
| parent | c4bf668b018868e28c286e9aeb931deba2f5657c (diff) | |
source and assembly of test hello4
Diffstat (limited to 'src/test/hello4.c')
| -rw-r--r-- | src/test/hello4.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/hello4.c b/src/test/hello4.c new file mode 100644 index 00000000..849e7a8d --- /dev/null +++ b/src/test/hello4.c @@ -0,0 +1,11 @@ +int main() { + int x = 6; + int y = 7; + int z = 0; + if ((x * y) > (x - y)) { + z = x * y; + } else { + z = x - y; + } + return z; +} |
