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

How can we develop a multi-tier application in Java?

0 Answers  


what is meaning of MDM in sap?let me know that meaning

0 Answers  


this question is from sas:what is the difference between FILE and INFILE statements? plz explain in brief?

1 Answers  


In an customer exit (include Z) program, only the last record is getting fetched. The exit is getting called after pressing save button. What to write for fetching the first record ? Before saved to a SAP table how can i call all these records in an itab in the exit ?

0 Answers  


in a VB application, where the data will be stored after manipulation? what is the syntax for that?

0 Answers   TCS,


hi this is uday i want prepare for nic exam if any one have previous question papers please send me or atlest guide me how to prepare my ID is udaykiran4u@in.com

0 Answers  


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

0 Answers   IBM,


How does the TCP handle the issue of multiplexing?

0 Answers  


Difference between debugging, running, executing of an application

0 Answers   HCL,


What is autocall macro and how to create autocall macro? what is the use of it?

0 Answers   GE,


What is the entry point function of a DLL?

0 Answers   Wipro,


Why we use NEW operator when we create Object,While in C++ we donot ?

1 Answers  


Categories