answersLogoWhite

0

Input a variable.

User Avatar

Wiki User

βˆ™ 15y ago

What else can I help you with?

Related Questions

Sum three real numbers using for loop in c program?

take input n chodo


When you input data in a loop within a program the input statement that proceeds the loop is what?

is called a priming input


How do you insert value to a dropdownlist from textbox input php?

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.


What is an open loop?

Output is obtained for a given input and we cant control the output my means of any feedback loop control to the input


To find biggest of four numbers using if else loop?

largest number a,b,c,d


How do you write a name using do while loop on QBASIC?

QBasic is a type of question basic πŸ€—πŸ€—πŸ€—πŸ€—πŸ˜…πŸ˜‚πŸ€£πŸ˜πŸ˜›


To print 5 45 345 2345 12345 in qbasic programming?

Oh, dude, to print those numbers in QBasic, you can use a simple loop. Just loop from 1 to 5 and print the numbers with spaces in between. It's like making a sandwich, but with numbers instead of bread and cheese. So, like, don't stress, just code it up and hit run. Easy peasy, right?


How do you print numbers as even numbers in a loop in qbasic?

To print even numbers in a loop in QBasic, you can use a FOR loop to iterate through a range of numbers and check if each number is even. An even number can be identified using the modulus operator (MOD). Here's a simple example: FOR i = 1 TO 20 IF i MOD 2 = 0 THEN PRINT i END IF NEXT i This code will print all even numbers from 1 to 20.


Wright The numbers from 1 to 10 in descending order using loop?

int i; for (i=10; printf ("%d\n", i); i--);


What is the program to print odd number using for next loop in GE BASIC?

In GE BASIC, you can print odd numbers using a FOR-NEXT loop by specifying a starting point and incrementing by 2. Here’s a simple example: FOR I = 1 TO 99 STEP 2 PRINT I NEXT I This will print all odd numbers from 1 to 99. The STEP 2 ensures the loop only increments by 2, thereby producing only odd numbers.


What is the time complexity of a nested while loop?

The time complexity of a nested while loop is O(n2), where n represents the size of the input data. This means that the execution time of the nested while loop increases quadratically as the input size grows.


How would I add numbers input by a user one at a time into a vector in MATLAB I have the loop set up but don't know how to add the data into the vector?

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!