We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Tutorials
- 30 Days of Code
- Day 5: Loops
- Discussions
Day 5: Loops
Day 5: Loops
Sort by
recency
|
1209 Discussions
|
Please Login in order to post a comment
In JAVA for(int i=1;i<=10;i++){ System.out.println(n+" x "+i+" = "+n*i); }
Python:
Python 3 Solution
!/bin/python3
import math import os import random import re import sys
if name == 'main': n = int(input().strip()) for i in range(1,11): print(n, "x", i, "=", n*i)