to print the first 5 multiples of a number in a Java Program code.
Answers
Answered by
0
class q1
{
public void kd( int n)
{
double a =0;
for (a=1;a <=5; a++)
{
double b = n*a;
System.out.println(" the "+ a + " multiples of " + n + " is ="+ b);
}
}
}
{
public void kd( int n)
{
double a =0;
for (a=1;a <=5; a++)
{
double b = n*a;
System.out.println(" the "+ a + " multiples of " + n + " is ="+ b);
}
}
}
Answered by
0
Answer:
ggggggggggggggggffffffffffgjjjgfddghgghh
Similar questions