Given: (x-2)(x+3)= 100;

solve the equation for x using any programing language.

Answer Posted / sravan

public class Test {
static int x;
public static void find()
{
for(x=0;x<104;x++)
{
if((x-2)*(x+3)==104)
{
System.out.println(x);
}
}

}
public static void main(String[] args) {


find();

}



}

Answer: 10

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Q2. A memory location has physical address D5687h. Compute: a. The offset address if the segment number is D445h. b. The segment number if the offset address is B577h.

1738


how will you code the subfile which is in editing mode (multiple case subfile)?

1695


it is a language or tools?

1719


Suppose we are doing 4 operations on database using service, first operation is successful but due to some reason remaining 3 operations are failed. I) is this transaction successful or not? ii) How can you give that error message to user?

1604


Can any one give an example (Source Code) on virtual function implemetation in Java?

1610






How to get the index of the clicked field in reports in ABAP?

1269


Hey this is venkatesh.Please can any body tell me what is SFLNXTCHG?where we use this keyword?what perpuse we use this?Can you tell me in real time senario with example? And in 7 specification(RPG/400)what is the mandatory specification using programs?

1635


What is the merger sort principle and its time complexity.

734


what is the use MDM(Master Data Management)and meaning

2021


Hi All, Can any one please send me the difference between informatica 7i and 8i versions, Thanks in advance. vinod

1642


what is web service in java? have u use before.

1728


HOW TO FIND NUMBER OF TWOS IN N!(N FACTORIAL)??

1874


hoe to data grid use in sql server 2000?

1737


when a query is made on Logical file in DB2/400, will the records satisfying select/omit criterion be fetched from all members of physical file or only the member with same name as physical file?

1820


Write a program to find whether a given number is prime or not.

689