Advertisement
Josif_tepe

Untitled

Sep 19th, 2024
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.     int a, b;
  5.     scanf("%d", &a);
  6.     scanf("%d", &b);
  7.    
  8.     int zbir = a + b;
  9.    
  10.     printf("%d\n", zbir);
  11.    
  12.     int razlika = a - b;
  13.     printf("%d\n", razlika);
  14.    
  15.     int proizvod = a * b;
  16.     printf("%d\n", proizvod);
  17.    
  18.     float kolicnik = (float) a / b;
  19.     printf("%f\n", kolicnik);
  20.    
  21.  
  22.     return 0;
  23. }
  24.  
  25. /*
  26.  Od tastatura se vnesuvaat 2 celi broja. Na ekran da se ispechati nivniot zbir, razlika, proizvod i
  27.  kolicnik
  28.  
  29.  **/
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement