answersLogoWhite

0

int n = 0;

while( (n*n) <= 10000 ) {

++n;

}

User Avatar

Wiki User

16y ago

What else can I help you with?

Continue Learning about Engineering

How do you write a c program to find the smallest word in a string?

what is if(!(str[i]==32))


How do you write program to read a set of real numbers and find the range is given by the difference between largest and smallest number?

Use the following algorithm (written in pseudocode). Let largest be the lowest possible real number. Let smallest be the greatest possible real number. Repeat while there is input... { Read real number r from input. If r is greater than largest then let largest be r. If r is less than smallest then let smallest be r. } End repeat. Let range be largest minus smallest. Output range.


Write a program which takes the gender and salary the age from user the program should calculate and display the following information you If gender is male and age is greater equals 18 then the tax?

Write a program which takes the gender and salary ,the age from user. the program should calculate and display the following information. i. If gender is male and age is greater &gt;=18,then the tax =5%of the salary. ii. If gender is female and age is &gt;=18,then tax=3%of salary. The program should display the output as follows: Gender = Age = Tax = Salary before tax = Salary after tax =


How to write program for secant method in mathematica?

How to write a program for secant method by mathematica


Write a program that randomly fills a 10 component array then prints the largest and smallest values in the array?

final double[] ns = new double[10]; final Random rnd = new Random(System.currentTimeMillis()); // Fill... for (int i = 0; i &lt; ns.length; ++i) { ns[i] = rnd.nextDouble(); } // Get largest/smallest... double largest = Double.MIN_VALUE; double smallest = Double.MAX_VALUE; for (double n : ns) { if (n &gt; largest) { largest = n; } if (n &lt; smallest) { smallest = n; } } // largest and smallest are now the proper values.