Computer Science, asked by kritika2727, 1 year ago

write write a program to find the table of a number using while loop

Answers

Answered by RikCena
1
class ab
{
public static void main(int n, int k)
{
int i;
while(i<=n)
{
k×=i;
i++;
System.out.println("Table"+k)
}
}
}
Answered by max37
0
#include<iostream.h>
#include<conio.h>
void main( )
{int n,i,j,k;
cout<<"enter the no. for which u want table";
cin>>n;
cout<<"enter range";
cin>>i;
while(j<=i)
{k=n*j;
j++;
cout<<k<<endl;
k=0;
}
getch() ;
Similar questions