Advertisement
Guest User

12. kolo takmičenja u programiranju - Zadatak 1 - j0le

a guest
Jan 10th, 2022
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int Broj[1];
  6.     printf("Upisi prvi broj: ");
  7.     scanf("%d", &Broj[0]);
  8.     //
  9.     printf("Upisi drugi broj: ");
  10.     scanf("%d", &Broj[1]);
  11.     //
  12.     if(Broj[0] + Broj[1] >= 100) printf("%d + %d = %d\n", Broj[0], Broj[1], Broj[0] + Broj[1]);
  13.     if(Broj[0] - Broj[1] >= 100) printf("%d - %d = %d\n", Broj[0], Broj[1], Broj[0] - Broj[1]);
  14.     if(Broj[0] * Broj[1] >= 100) printf("%d * %d = %d\n", Broj[0], Broj[1], Broj[0] * Broj[1]);
  15.     if(Broj[0] / Broj[1] >= 100) printf("%d / %d = %d\n", Broj[0], Broj[1], Broj[0] / Broj[1]);
  16.     return 1337;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement