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
|
1200 Discussions
|
Please Login in order to post a comment
Python u=1 while True: if u <= 10: mult = n*u print(str(n), "x", str(u), "=", str(mult)) u += 1 else: break
include
using namespace std; int main() { int n, res; cout<<"enter n :"; cin>>n; for(int i=1;i<=10;i++) { res=n*i; cout<
Java Solution.
for(int i=1;i<=10;i++){ System.out.println(n + " x " + i + " = " + n*i); }
javascript