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
how to convert hashmap to arraylist with iteration
what is difference between kpo and it industry? that is in terms of work, package etc
what is delegate and delegation model give the real live example on delegate model
How does the TCP handle the issue of multiplexing?
Always use scope terminator like End-If with IF, End- Evaluate with Evaluate statement.Can somebody explain me the detail logical explanation?
if 3 duplicate records, by keeping one original and one duplicate record, and how to delete remaining 2 duplicates in sql server 2008
what are the 3 forms of a prolog term
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 ?
How do you pass variables forwrd to future CECI sessions
You are given some denominations of coins in an array (int denom[])and infinite supply of all of them. Given an amount (int amount), find the minimum number of coins required to get the exact amount. What is the method called?
10.Define filters,binary to hexadecimal,hexadecimal to decimal?
For a binary tree with n nodes, How many nodes are there which has got both a parent and a child?
What is diffrent between Method and and function in c#
pleasew define carrier scope in abap (sap).
can we retrieve only integer/String type columns from a table,if yes how?