Given: (x-2)(x+3)= 100;
solve the equation for x using any programing language.
Answer Posted / 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 View All Answers
Hi guyes, I have cleared 2 technical rounds with cts for liferay and java techonologies, i have client round next week, please tell me how to prepare for this what questions i should be ready to face?
what is log files in qtp what is use
Write a program to find factorial of a number using functions
How can recruiter justified that the candidate is expert in Algorithm and datastructure for Software product development ?
Q1.Write a C program which asks the user for a number between 1 to 9 and shows the number. If the user inputs a number out of the specified range, the program should show an error and prompt the user for a valid input.
What for decision coverage and modified condition decision coverage are used? Wat is the difference between them?
what is radio button? Plz show code this! how will select radio buttons to go next window Forms? Supose o radio button1 o radio button2 o radio button3 o radio button4 how will coding this? Plz explain this!
Hi can you please help for the following. I have a ASP.Net web page I want to print the whole page how is it possible? I want It in ASP also.Please send me the solutions dipankar.hazari@gmail.com . Thanks in advance.
what is the certificates in biztalk?
I want to pass .pdf files as OlE Object to crystal report through VB6. Please any one guid me...
what is session state?
Explain polymorphism. Provide an example.
What is the entry point function of a DLL?
Write a pseudo code to evaluate a number to any base given (2...16) based on the input. Number greater than 9 should be given as A-F for 10-15.
Do not use more than 3 nested IF. Use Evaluate statement in case of more IF required. Please give a detail explantion besides readability and clarity for Evaluate stmt.