Advertisement
brsjak

Triagolnik i Kvadrat - SPLab 2

Oct 16th, 2016
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(){
  3.     int a,b,c,d;
  4.     scanf("%d%d%d%d",&a,&b,&c,&d);
  5.     if(a+b+c==4*d){
  6.         printf("Isti se");
  7.     }
  8.     else{
  9.         if(a+b+c>4*d){
  10.             printf("Triagolnik");
  11.         }
  12.     else
  13.         printf("Kvadrat");
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement