source:
CIVL/mods/dev.civl.com/examples/library/stdio/scanfExit.cvl@
bc0fbae
| Last change on this file since bc0fbae was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 235 bytes | |
| Line | |
|---|---|
| 1 | #include<stdio.h> |
| 2 | #include<civlc.cvh> |
| 3 | |
| 4 | int main(){ |
| 5 | int a = 1, b = 2, c = 3; |
| 6 | |
| 7 | scanf("%d", &a); |
| 8 | fscanf(stdin, "%d", &b); |
| 9 | if(b == 0) |
| 10 | $exit(); |
| 11 | fscanf(stdin, "%d", &c); |
| 12 | printf("a=%d, b=%d, c=%d\n", a, b, c); |
| 13 | return 0; |
| 14 | } |
Note:
See TracBrowser
for help on using the repository browser.
