### Help!!!

How my program to loo like this

Sample Input
 ``1234`` ``````3 3 5 4 1 2 1 3 3 1 ``````

Sample Output
 ``123`` ``````3 5 4 : RIGHT TRIANGLE WITH AREA 6.00000 UNITS SQUARED 1 2 1 : NOT A TRIANGLE 3 3 1 : TRIANGLE WITH AREA 1.47902 UNITS SQUARED``````

and..this is my code..
 ``1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859`` ``````#include #include #include using namespace std; int main() { double x,y,z; int N; float Area,s; cin >> N; if (N > 1000) return 0; for (int i = 1; i <= N;i++) { cin >> x; if ( x > 5000) return 0; cin >> y; if ( y > 5000) return 0; cin >> z; if ( z > 5000) return 0; s = ( x + y + z ) / 2; Area = sqrt ( s * ( s - x ) * ( s - y ) * ( s - z )); int B = Area; if ( (B % 3) == 0 && ( x != y != z)) { cout << x << " " << y << " " << z ; printf (" : RIGHT TRIANGLE WITH AREA %1.5f UNITS SQUARED\n",Area); } if ( Area == 0) { cout << x << " " << y << " " << z ; cout << " : NOT A TRIANGLE" << endl; } else if ( (B % 3) > 0) { cout << x << " " << y << " " << z ; printf (" : TRIANGLE WITH AREA %1.5f UNITS SQUARED\n",Area); } } return 0; }``````

NOTE: using array is not allowed!

but..my other thread is not yet solved..i have a certain changes in my code..so..i posted a new thread..
Ok, Just keep one thread going, otherwise you will have new threads all over the place. The problem is that someone might write lots of stuff into one thread, only to discover someone else has written heaps into the other one. As well as this, you threads are on different boards.

Apart from that you haven't said what the particular problem is now.

I don't think it will compile, so post your compiler output.