program for validity of triangle from 3 side
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / rakesh ranjan
I AGREE WITH PRITAM AND MANU
................................
Abhradeep Chatterjee is a real STUPID
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / abhradeep chatterjee
No above two answers are not corret, because i am not sure
about the shape and angle of the triangle.
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / abhradeep chatterjee
yes, the above two answers are correct.
Is This Answer Correct ? | 1 Yes | 3 No |
Write an interactive c program that will encode or decode a line of text. To encode a line of text, proceed as follows: Convert each character, including blank spaces, to its ASCII equivalent. Generate a positive random integer. Add this integer to the ASCII equivalent of each character. The same random integer will be used for the entire line of text. Suppose that N1 represents the lowest permissible value in the ASCII code, and N2 represents the highest permissible value. If the number obtained in step 2 above exceeds N2, then subtract the largest possible multiple of N2 from this number, and add the remainder to N1. Hence the encoded number will always fall between N1 and N2, and will therefore always represent some ASCII character. Display the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text. Be certain, however, that the same random number is used in decoding as was used in encoding.
1 Answers Amazon, CSJM, HCL, Microsoft, TCS, Wipro,
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
How to calculate Total working time using Login and logout?
2 Answers CTS, Cygnus, Infosys, Signal Networks, TCS, Wipro,
Explain what are its uses in c programming?
While compiling a c program,graphics header files are not including in my program..eg: <graphics.h>,what may be the problem...is there any environment settings exists.
a<<1 is equivalent to a) multiplying by 2 b) dividing by 2 c) adding 2 d)none of the above
what is difference between array,strutter,union and pointers
3 Answers CTS, Lovely Professional University, Mannar Company,
What are unions in c?
How do you override a defined macro?
Explain how can I open a file so that other programs can update it at the same time?
though sbi was nationalized why its not comes under nationalized banks and its comes under publicsector banks
3 Answers State Bank Of India SBI,
what is const volatile?