write a program to display the following series upto 10 terms:
7,14,21.............................
Answers
Answered by
6
import java.util.*;
public class Series
{
public static void main(String args[])
{
Scanner in=new Scanner(System.in);
int a=7,i,n;
for(i=1;i<=10;i++)
{
n=a*i;
System.out.println("Display the series"+n)
}
}
}
Answered by
1
Answer:
By for() loop
Explanation:
class Question
{
void main()
{
for(int i =1; i<=10; i++)
{ int b = i*7 ;
System.out.println(b);
}
}
}
Similar questions