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 function that receives a list (array) as a parameter, and deletes its duplicate items and returns the new (array) list
Write the absentee presentation program: The teacher enters the students' names in the classroom every day in a file with the name of that day in the name of that day and in the TXT format, the teacher can enter the date by entering the date ...
Write a program that receives a number from the user and prints the multiplication table as the following in the output. Yek adad vared konid: 2 x 1 = 2 2 x 2 = 4 x 3 = 6 2 x 4 = 10 x 6 = 12 2 2 x 7 = 14 2 x 7 = 2
Write a program that receives a solar date from the input (in the format of yyyy/mm/dd). Then convert the date to AD and print in the output
Write a program that receives a text from the user as an input and all the words used in the text, along with the number of repeating them to the user, such as: Input: This is an Example. This is a text ... ...
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.