plz solve the seond series in java. make a program. second one (till 10 term)
Attachments:
Answers
Answered by
3
the above code will give the desired result.
Attachments:
braniest:
thanks very much
Answered by
3
public class Basic
{
public static void main(String[] args)
{
int a = 12, b = 1, c = 1;
System.out.print("The output is : ");
for (int i = 1; i <= a; ++i)
{
System.out.print(b+" ");
int d = b + c;
b = c;
c = d;
}}}
{
public static void main(String[] args)
{
int a = 12, b = 1, c = 1;
System.out.print("The output is : ");
for (int i = 1; i <= a; ++i)
{
System.out.print(b+" ");
int d = b + c;
b = c;
c = d;
}}}
Similar questions