Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Why we need new operator in java at the time of object declaration and why not in c++?

1 Answers   Zensar,


how to get second highest salary from a employee table and how get a 5th highest salary from a employee table by using proc sql?

0 Answers   ABC,


What is the merger sort principle and its time complexity.

0 Answers   Verifone,


without selecting individually each field in Action Class from jsp,what is the best process to select as many as field at a time automatically from jsp page by using value object class.

0 Answers  


Explain polymorphism. Provide an example.

0 Answers   Amazon,


Can anyone provide as400 training material or any institute in bangalore for as400 training

10 Answers  


sample code for data transfer between two r/2 systems and r/3 systems?

0 Answers  


what is oops?

5 Answers   Satyam,


Define Abstract method & class with Example

3 Answers  


If i have a dataset queried from Sql and I would like to insert the dataset into a specific node in an xml document how do I do this

0 Answers   SGT,


if 2 is passed as an argument to the method,void GC.Collect then what would be the result?

0 Answers  


what is the diffrence between occur 0 and occur 10 in ABAP.

0 Answers  


Categories