racunalo.c | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #include <stdio.h> #include <stdlib.h> main(int argc, char *argv[]) { if (argc != 3) { printf("Program za izpis vsote dveh stevil. \n"); printf("Uporaba: %s x y \n", argv[0]); exit(1); } int x = atoi(argv[1]); int y = atoi(argv[2]); printf("%d + %d = %d\n", x, y, x+y); } |