Input a variable.
take input n chodo
is called a priming input
Store the textbox input in a database using a html form prefarably. Using a loop get all the textbox input from database and use print/echo to show them in a dropdown.
Output is obtained for a given input and we cant control the output my means of any feedback loop control to the input
largest number a,b,c,d
int i; for (i=10; printf ("%d\n", i); i--);
First, make sure your vector is initialized outside of the loop. Then, within your loop you need to update the vector. If you want data entered by the user only, you should initialize with an empty vector. Example program (not sure which loop you're using, but I'll use a while loop here): vector=[]; user='y'; while user=='y' user=input('Enter another variable? Type y for yes and n for no: '); if user=='n' break end var=input('Please input variable: '); vector=[vector, var]; end The key part in this coding is the line: >> vector=[vector,var]; as this will update your vector with the previous vector values, and then add another value to the vector with whatever number var is. Hope this helps!
By using repeated addition. Consider two numbers a and b. If you want to find a*b then you can add the numbers repeatedly in a loop to get the product. Eg:product = a;for( i=1; i
The best way to print the numbers 1 to 100 in PHP without using a loop is with the following code: echo implode("<br>", range(1,100)); You can replace the <br> with anything that you want to separate the numbers, such as dashes. I used a line-break in the example.
Declare the arrayuse a for loop going from 0 to 4within that loop, ask a question, and store it in the array at the current indexstart another for loop going from 4 to zeroin that loop output the questions.For instance, if you're doing it in C, it would be something like this:#include int main(int argc, char *argv[]){int answer[5], n;for(n = 0; n < 5; n++){printf("Gimme a number: ");scanf("%i", &answer[n]);}for(n = 4; n >= 0; n--){printf("%i\n", answer[n]);}return 0;}
It is both input or output
A priming input, also known as priming read, is the statement that reads the first input data record prior to starting a structured loop.