Building a multiplication table 2
Write a program that prints the multiplication table as shown below:
Write a program that prints the multiplication table as shown below:
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
num = int(input('Number: ')) a = num**2 for i in range(1,num+1): for j in range(1,num+1): print(i*j,end=' '*(1+len(str(a)) - len(str(j*i)))) print()
size = 10 for i in range(1, size + 1): row = "" for j in range(1, size + 1): row += str(i * j).ljust(4) print(row)
num1 = int(input('Number1:')) num2 = int(input('Number2:')) for i in range(1,num1+1): for j in range(1,num2+1): print(f'{i*j:<4}',end='') print()
for i in range(1:11): for j in range(1:11): print(f{i*j}:<5, end="")
i = 1
while i <= 10:
j = 1
while j <= 10:
print(i * j, end="\t")
j += 1
i += 1
print()
def multyply():
for i in range(1, 11):
for j in range(1, 11):
print(f"{i * j:3}", end="")
print()
multyply()
package Tax.App.cmd; public class Jadval_Zarb2 { public static void main(String[] args) { for (int i = 1; i < 11; i++) { for (int j = 1; j < 11; j++) { if (i * j > 9) System.out.print(i * j + " "); else System.out.print(i * j + " "); } print(3); } } public static void print(int x) { for (int i = 0; i < x; i++) { System.out.println(); } } }
Submitting answers is currently unavailable.
Write a program that receives 2 numbers as the interval, in which the interval of all the 5 existing numbers. For example, in the interval of 1 to 20 the number 2 times the number 5 repeated (5 and 15)
Write a function that receives a list (array) as a parameter, and deletes its duplicate items and returns the new (array) list
Write a program that receives the radius of the circle and prints its area and environmental area = radius * Pi (3.14) circle environment = diameter (radius * 2) * Pi (3.14)
Write a function that receives a string and converts Persian numbers into English numbers
You must be logged in to access this section.
Login/Sign up If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.