program for validity of triangle from 3 side

Answer Posted / pritam

if(a < (b+c))
if( b < (c+a))
if(c < (a+b))
printf("its a triangle\n");

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there a way to switch on strings?

830


What is c definition?

966


What is the difference between a function and a method in c?

814


What are actual arguments?

860


write a c program in such a way that if we enter the today date the output should be next day's date.

1916


What is the benefit of using const for declaring constants?

817


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

852


Write a code of a general series where the next element is the sum of last k terms.

819


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

2322


A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?

2079


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1754


Why malloc is faster than calloc?

817


Does * p ++ increment p or what it points to?

851


Explain what is gets() function?

824


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

880