Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  h
Language: C/C++
Code:
#include<stdio.h>
#include<math.h>
int triunghi (float x, float y, float z)
{
     if((x>0)&&(y>0)&&(z>0)&&(x<y+z)&&(y<x+z)&&(z<x+y))
     return 1;
          else return 0;
}
void main()
{
     float x;
     float y;
     float z;
     printf("Introduceti x: ");
     scanf("%f", &x);
     printf("Introduceti y: ");
     scanf("%f", &y);
     printf("Introduceti z: ");
     scanf("%f", &z);
 
     printf("Rezultat: %d",triunghi(x,y,z)),
 
     getchar();
     int k;
     scanf("%d", k);
}
          
Comments: