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

solve the equation for x using any programing language.

Answers were Sorted based on User's Feedback



Given: (x-2)(x+3)= 100; solve the equation for x using any programing language...

Answer / 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

Given: (x-2)(x+3)= 100; solve the equation for x using any programing language...

Answer / sumitpalsingh

/*Given: (x-2)(x+3)= 104; solve the equation for x using any programing language.*/
package classroom.program;

public class SolveProblem {

public static void main(String[] args) {

for(int x=0;x<100;x++)
{
if((x-2)*(x+3)==100)
{

System.out.println(x);
}
}


}

}

//output::=10

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Programming Languages AllOther Interview Questions

. With the help of above table EMP, perform the following operation is sql. a) Add the new column “DEPTNO” b) Rename the table c) Update table d) Modify the table if column ‘SAL’ whose data type is number (10) and you want to enter varchar2 (15) . For example $USD 20 etc.

2 Answers  


what is the system development cycle

0 Answers  


why we use abstract word in abstract window toolkit in java language.

0 Answers   Infosys,


How can you incorporate a Datawindow to a Oracle8i stored procedure?

0 Answers   IBM,


can any method return type may be constructor , or that method name allow

0 Answers   HCL,






5. Which of the following can you do with DB2 Express- C? Query databases with SQL Query databases with XML using XQuery and XPath Use SQL in Xquery and Xquery in SQL All of the above

0 Answers  


how can i split string in a textbox in windows appication using C#.net

0 Answers   IBM,


Urgent Openings for Java and .NET ( India, Singapore, Australia, Japan)

6 Answers   CTS,


hi all, i need ur help in preparing a sql which performs scd2, i mean i have a scd2 mapping i need a sql which can give me same result as scd2 mapping, SRC table: cust_no, loc 01 abc 02 xyz TGT table: pm_ky cust_no loc current_flag 1 01 abc Y 2 02 xyz Y cust 1 has changed his loc to xyz then it loads into TGT table as below, pm_ky cust_no loc current_flag 1 01 abc N 2 02 xyz Y 3 01 xyz Y i need sql to get the above result, hope got me question, Any suggestion will be appreciate.. thanks, Vinod

0 Answers  


is try block possible without catch block?

3 Answers  


what is dynamic polymorphism?

2 Answers   Satyam,


What is the difference between COM and CORBA?

0 Answers   Yahoo,


Categories