Study guides

☆☆

Q: How do you print the following series in c A B B C C C D D D D?

Write your answer...

Submit

Still have questions?

Related questions

a=0 b=1 c=0 For i=0 to whaterveryouwant print c c=a+b a=b b=c next i

e

write a program to print the series 1/12+1/22+.........+1/n2 ?

void main() { int a=0,b=1,c; clrscr(); printf("%d",a); printf("%d",b); for(;c<=20;) { c=a+b; a=b;b=c; printf("%d",c); } getch(); }

# include<stdio.h> main() { int a,b,c; print f("enter the values of a,b,c"); scan f("%d%d%d",&a,&b,&c); if((a>b)&&(a>c)) print f("Greatest value is a =%d",a); else if((b>a)&&(b>c)) print f("Greatest value is b=%d",b); else print f("Greatest value is c=%d",c); }

You need to be more specific in what you are asking. For example, the following meets your requirements: int main() { printf("a a b a b c\n"); return 0; }

The answer is C.

C

The answer is C.

#include<iostream> int main() { std::cout<<"a b a b c b a b c ....................."<<std::endl; }

If you wish to sum every number as you go along:10 LET A=120 PRINT A30 LET B=A+140 PRINT A+B50 LET C=B+160 PRINT A+B+C70 LET D=C+180 PRINT A+B+C+D90 LET E=D+1100 PRINT A+B+C+D+E110 LET F=E+1120 PRINT A+B+C+D+E+F130 LET G=F+1140 PRINT A+B+C+D+E+F+G150 LET H=G+1160 PRINT A+B+C+D+E+F+G+H170 LET I=H+1180 PRINT A+B+C+D+E+F+G+H+I180 LET J=I+1190 PRINT A+B+C+D+E+F+G+H+I+J200 STOP

Start -> Input A -> Input B -> Let C = A + B -> Print C -> End

C b a c d c b g a b b c

Private Sub command1_click() let a = val(text1.text) let b = val(text2.text) let c = val(text3.text) if a >b then if a >c then print a;"is greater of all" end if elseif b >a then if b >c then print b ; " is greater of all" end if elseif c >a then if c > b then print c ; " is greater of all " end if else print " data provided is not valid " end if end if

to print the Fibonacci series until 100 you can take the input in d to make it run for whatever value you want void main(){ int a,b,c,d; a=0; b=1; c=1; d=100; while(c<d) { printf("%d\n",c); c=a+b; a=b; b=c; } }

Start Input A Input B C=A+B Print C END

start read a read b c=a-b print c end

#include <stdio.h> int main (void) { puts ("a a b a b c"); return 0; }

c

It means that you have the following three elements in series: R (resistance), L (inductance), C (capacitance).It means that you have the following three elements in series: R (resistance), L (inductance), C (capacitance).It means that you have the following three elements in series: R (resistance), L (inductance), C (capacitance).It means that you have the following three elements in series: R (resistance), L (inductance), C (capacitance).

H & I

I am going to assume you want a program to print out the Fibonacci series. #include <stdio.h> int main(int argc, char **argv) { if (argc < 2) { printf("Usage: %s max\n", argv[0]); return -1; } int a = 1, b = 1, c; int max = atoi(argv[1]); printf("%d %d ", a, b); while (b < max) { c = a + b; a = b; b = c; if ((b <= max)) printf("%d ", b); } printf("\n"); return 0; }

b,c

//to generate Fibonacci series upto a range of 200....(in C).... #include<stdio.h> main() { int a,b,c,i; a=0; b=1; printf("\n FIBONACCI SERIES .....\t"); i=1; while(i<=(200-2)) { c=a+b; printf("\t%d",c); a=b; b=c; i++; } }

#include#includemain(){int n,i,c,a=0,b=1;printf("Enter Fibonacci series of nth term : ");scanf("%d",&n);printf("%d %d ",a,b);for(i=0;i

People also asked