For N = 1 to 10
Print 2 * N
Next N
To print a particular value in PHP you have to select which variable you wish to print. Below is an example of how this can be done. <?php $var[1] = "Hello"; $var[2] = "Lalala"; print $var[2]; // prints Lalala but not Hello ?>
53. Thanx for using wikianswers.Yours,Miss Mysteryxoxox
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.
the highest number you can count up to using 10 bits is 1029 using binary
displaying a variable in php using echo statement? <?php $name="ram"; //declaring and defining the variable echo "$name"; //printing the variable using echo command ?>
First you have to retrieve the data from the database by using the 'records view', 'Query' or 'report' menus. Then select print.
Using a ? instead of typing PRINT saved four keystrokes. 10 ? "Hello" would do the same as 10 PRINT "Hello".
RANDOMIZE TIMER rndNumber% = INT(RND * 100) + 1 winFlag% = 0 CLS PRINT "PROGRAM: Guess the number" PRINT PRINT "I'm thinking of a number between: 1-100. You've 7 guesses..." PRINT PRINT "Guess No" FOR eachGuessNo% = 1 TO 7 PRINT eachGuessNo%; "> "; INPUT "What is my number"; guessNum% IF guessNum% = rndNumber% THEN PRINT "Yes, correct guess; you WIN!" winFlag% = 1 EXIT FOR END IF NEXT IF winFlag% = 0 THEN PRINT "No, you guessed WRONG! I the computer WIN!" PRINT "My number was: "; rndNumber% PRINT PRINT "Again, Y/N"; yesNo$ DO yesNo$ = INKEY$ LOOP UNTIL yesNo$ <> "" IF UCASE$(LEFT$(yesNo$, 1)) = "Y" THEN RUN END
Yes, it is possible to do that.
i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?
how to print "square" using for loop
By using Depth First Search or Breadth First search Tree traversal algorithm we can print data in Binary search tree.
By using "str()". Example: number = 2 yourNumber = print("Your number is %s!") % (str(number))
it is int n=123; printf ("%d", (n/10)%10);
Use the following:awk 'END { print NR }'Awk will count the lines and print it out.
impossible sorry
-- Photocopy the question or print the screen. -- Trim and discard the first 8.