Advertisement
adventuretimeh

3 lati di un triangolo senconda parte

Jan 15th, 2020
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.49 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  5.  
  6. int main(int argc, char *argv[]) {
  7.     int latoa,latob,latoc,scaleno,iscocele,equilatero,b,a,c;
  8.     printf("latoa");
  9.     scanf("%d",&latoa);
  10.     printf("latob");
  11.     scanf("%d",&latob);
  12.     printf("latoc");
  13.     scanf("%d",&latoc);
  14.     if(a-b<c)
  15.     {
  16.     printf("scaleno");
  17.     }
  18.     else
  19.     if(b+c<a)
  20.     {
  21.     printf("iscoscele");
  22.     }
  23.     else
  24.     printf("equilatero");
  25.    
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement