Untitled

mail@pastecode.io avatar
unknown
plain_text
6 months ago
578 B
0
Indexable
Never
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){char a[14], b[14], c[14], d[14];char* r;scanf("%s %s %s %s", a, b, c, d);while (atoll(a) < -1000000 || atoll(a) > 1000000 || atoll(c) < -1000000 || atoll(c) > 1000000 || atoll(b) < 0 || atoll(b) > 1000000 || atoll(d) < 0 || atoll(d) > 1000000) { printf("Neispravan unos!\n");scanf("%s %s %s %s", a, b, c, d);}strcat(a, b);strcat(c, d); printf("%s+%s=%lld\n%s-%s=%lld\n%s*%s=%lld", a, c, atoll(a) + atoll(c), a, c, atoll(a) - atoll(c), a, c, atoll(a) * atoll(c));return 0;}
Leave a Comment