Yahoo Αναζήτηση Διαδυκτίου

Αποτελέσματα Αναζήτησης

  1. 7 Μαρ 2024 · In this article, we explored three different methods for creating multiplication tables using while loops in Python. The basic while loop, user-defined while loop, and nested while loop offer flexibility in generating tables for specific use cases.

  2. 14 Μαΐ 2022 · Multiplication table in PHP using for loop, while loop, and function. In this article, you will learn how to make a multiplication table in PHP using for loop, while loop, and function. Example. ----The input number is: 17. ----The range number is: 11. ----The above multiplication table--------

  3. 5 Ιουλ 2018 · Creating a multiplication table using while loop is shown below: b = int(input('Enter the number of the multiplicaction table : ')) print('The multiplication table of '+ str(b) + 'is : ') a=0 while a<=11: a=a+1 c= a*b print( str(b)+' x '+str(a)+' ='+str(c)) print('done!!!!')

  4. 27 Οκτ 2021 · In this article, we will see how to print the multiplication table of any given number using PHP. To make the multiplication table, first, we get a number input from the user and then use for loop to display the multiplication table.

  5. To generate a multiplication table in PHP, nested for loops are utilized. The outer loop iterates through each row (multiplier), while the inner loop iterates through each column (multiplicand), multiplying the two indices at each intersection. Example: Run Code. Copy Code.

  6. Python for Loop. Python Basic Input and Output. In the program below, we have used the for loop to display the multiplication table of 12. Source Code. # Multiplication table (from 1 to 10) in Python . num = 12 # To take input from the user # num = int(input("Display multiplication table of?

  7. 11 Ιαν 2024 · The program defines a function displayMultiplicationTable that displays the multiplication table for the fixed number 5 using a for loop. Inside the script, the function displayMultiplicationTable is called.

  1. Γίνεται επίσης αναζήτηση για