Programming a function of traingle [closed]

I have a problem of programming as following-

Write a program that defines structure of a traingle having three sides a,b,c.

The program should have a user defined function,which will take a structure variable as a parameter and determine is it a triangle or not based on value of three sides