The for loop looks like this:
for (i = 1; i <= 10; i++)
{
...
}
This will repeat anything inside ten times; the variable "i" will have the values 1, 2, ...10. The first part is the initial assignment, the second part specifies a condition - while it is true, the loop should continue, and the third part increments the variable(s).
Replace the "..." with anything you want to repeat 10 times, for example, a System.out.println(...) that involves the variable "i".
Use an enum if you are using a c style language. Or a map data structure. Assign each integer an English value and then match it to what the user inputs.
x -=y;
Use a counted for loop. On each iteration, multiply the control variable by 2 and print the result.
int firstNumber,secondNumber for(firstNumber = min; firstNumber <= max; firstNumber++); { for(secondNumber = min; secondNumber <=max; secondNumber++); int result firstNumber * secondNumber; }
To write a C++ program to display the student details using class and array of object.
how to write a program for matrix multiplication in microprocesspr
Use an enum if you are using a c style language. Or a map data structure. Assign each integer an English value and then match it to what the user inputs.
Write a function that implements an algorithm that checks to see if a particular integer is prime (returning a boolean). Write a program that uses that function on each number from 1 to 100, and if true, displays that number.
x -=y;
Use a counted for loop. On each iteration, multiply the control variable by 2 and print the result.
write a program to display your name age class schoolname e-mail 2hobby based on choice
Faisal
int firstNumber,secondNumber for(firstNumber = min; firstNumber <= max; firstNumber++); { for(secondNumber = min; secondNumber <=max; secondNumber++); int result firstNumber * secondNumber; }
To write a C++ program to display the student details using class and array of object.
integer = input("Please input an integer greater than 0: ") print(integer)
a*b = exp (ln a + ln b)
Write a program which takes the temperature in farhenheight.the program should display the farhenheight temperature as well as centigrade. C= (f-32)*5/9