source:
CIVL/mods/dev.civl.com/examples/arithmetic/sqrtBad2.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 130 bytes | |
| Rev | Line | |
|---|---|---|
| [869af89] | 1 | #include <math.h> |
| 2 | #include <assert.h> | |
| 3 | ||
| 4 | $input double x; | |
| 5 | ||
| 6 | int main() { | |
| 7 | double y = sqrt(x) + 1; | |
| 8 | ||
| 9 | assert(y >= 1); | |
| 10 | return 0; | |
| 11 | } | |
| 12 |
Note:
See TracBrowser
for help on using the repository browser.
