Mitkashin

Pravoagolnik i Kvadrat / Lab2.2

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