answersLogoWhite

0


Best Answer

What do you mean by 'object'?

If you have three points, you may want to know whether or not they form a triangle.

Example:

struct point { int x, y; } a, b, c;

if ((b.x-a.x)*(c.x-a.x)+(b.y-a.y)*(c.y-a.y) != 0) puts ("Triangle");

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you determine that an object is a triangle or not using a c program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Reason of Working in an orderly way while using acid?

[object Object]


Write a program in qbasic to make a hut using print statemant?

a triangle then a square :)


Differences between source program and object program?

SOURCE PROGRAM=A set of instructions of the high level language used to code problems to find its solution on a computer is referred as source program. OBJECT PROGRAM=The computer translates the source program into machine language program called object program by using an interpreter or compiler is called object program.


How do scientists determine how old objects are by?

Archeologists determine how old an object is, by using Carbon Dating.


What is the basic requirement for you to see an object using the microscope?

The basic requirement for you to see an object using the microscope is light. The amount of light will determine the visibility of the specimen.


What C program for display in triangle?

Please visit http://talentsealed.blogspot.com/2009/10/to-display-triangle-using-c-programming.html for the answer. Please let me know your comments


How can you determine whether or not the sides of a triangle form a right triangle using Pythagorean triples?

If the lengths of the sides of the triangle can be substituted for 'a', 'b', and 'c'in the equationa2 + b2 = c2and maintain the equality, then the lengths of the sides are a Pythagorean triple, and the triangle is a right one.


How do you determine the speed of a moving object?

The average speed of an moving object is determined by using the formula velocity=distance/time or v=d/t.


Is 10,000,001 a triangle number?

ran a javascript program instead of using math and found that 10,000,001 isn't a triangle number, these are the ones right before and after it: 997578 998991 1000405 1001820


Can you initialize an object without constructor in java?

No. if you wish to create an object that you plan on using in a java program then the answer is NO. You cannot initialize an object of a Java class without calling the constructor.


How do you calculate the density of an irregular object?

Determine its mass using a balance and determine its volume using water displacement. Then divide the mass by the volume to get density. Refer to the related link below for more detail.


What are the benefits of using Object orientation programming?

Say I need to make a program that displays a triangle, a square, and a circle, which each make a different noise when clicked. If I were to make them procedurally, it would take more code than if I were going to make them object-oriented. Also, say I wanted to add an amoeba. If I was using object-oriented code, I would not have to touch already tested code. There are many benefits, apart from that example, but they are too many to say here.