SHARE
TWEET

1.1 Аритметички операции

Mihajlo_K Mar 17th, 2019 (edited) 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Да се напише програма која ќе ги изведува основните математички операции (+, -, *, /, %) врз два броја кои се читаат од стандарден влез.
  2.  
  3. #include <stdio.h>
  4. int main () {
  5.     // deklaracija na dve celobrojni promelivi
  6.     int a, b;
  7.  
  8.     // chitanje na dva broja od standarden vlez
  9.     scanf("%d %d" , &a, &b) ;
  10.     printf ("a + b = %d\n", a + b);
  11.  
  12.     // vasiot kod ovde
  13.     printf("a - b = %d\n", a - b);
  14.     printf("a * b = %d\n", a * b);
  15.     printf("a / b = %d\n", a / b);
  16.     printf("a % b = %d\n", a % b);
  17.     // kraj na vasiot kod
  18.  
  19.     return 0;
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top