Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef _MSC_VER
- #define _CRT_SECURE_NO_WARNINGS
- #endif
- #include <stdio.h>
- #include <conio.h>
- #include <math.h>
- #include <ctype.h>
- const false = 0 || NULL;
- double add(double one, double two) {
- return one + two;
- }
- main() {
- double a[3];
- printf("DODAJEMY\n");
- switch (scanf("%lf%lf", &a[0], &a[1])) {
- case 0: {
- printf("Musisz użyć liczb.");
- break;
- } default: {
- a[2] = add(a[0], a[1]);
- printf("Suma wyników %.0lf i %.0lf to %.0lf\n", a[0], a[1], a[2]);
- break;
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment