Find the no. Of terms in the ap:100,96,92....,12
Answers
Answered by
2
Step-by-step explanation:
l=12
d=-4
a=100
12=100+(n-1)-4
12=100-4n+4
92=4n
n=23
Answered by
3
import java.util.*;
public class Scanner
{
public static void main(String args[])
{
int i;
for(i<=100;i>=12;i=i-4)
{
System.out.println("The series is" +i);
}
}
}
Similar questions