Write a program in python that prints multiplication table between Given upper limit and lower limit .(Eg. if the user inputs lower limit = 2 and upper limit = 5, the computer should print multiplication table of 2,3,4 and 5.) Please do it using While loop..
Answers
Answered by
3
Explanation:
n=int(input("Enter an lower limit:"))
n2=int(input("Enter an upper limit:))
while n<=n2:
x=1
while x<11:
print(n,"*",x,"=",x*n)
x=x+1
n=n+1
Answered by
0
Answer:
{
int i, n, d ;
clrscr() ;
printf("Enter the limit : ") ;
scanf("%d", &n) ;
printf("\nEnter the number : ") ;
scanf("%d", &d) ;
printf("\nThe numbers divisible by %d are :\n\n", d) ;
for(i = 1 ; i <= n ; i++)
if(i % d == 0)
printf("%d\t", i)
; getch() ;
}
Explanation:
Similar questions
Physics,
6 months ago
Math,
6 months ago
English,
6 months ago
Math,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago