answersLogoWhite

0


Best Answer

#include <stdio.h>

int main (void) {

puts ("a a b a b c");

return 0;

}

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is there a 'c' code to generate the series a a b a b c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you generate Fibonacci series in c programming language?

#include&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { int a=-1,b=1,c=0,i,n; clrscr() printf("Enter the limit"); scanf(%d,&amp;n) printf(the resultant fibonacci sequence is:) for(i=1;i&lt;=n;i++) { c=a+b; printf(%d, c) a=b; b=c; } getch(); }


How do you convert A B C in binary code?

A = 1010 b = 1011 c = 1100


Write a java program to generate the Fibonacci Series using for loop?

class Fibonacci { public static void main(String args[]) { System.out.println("enter the number upto u want"); int number=Integer.parseInt(args[0]); int a=0,b=1,c=0; System.out.print(a+" "+b); for(int i=1;i&lt;=number;i++) { c=a+b; System.out.print(c+" "); a=b; b=c; } } } the number are given to the run time where are print the series eg: 5 0 1 1 2 3 5 8 13................


How do you convert HTML to c code?

You can't. HTML is a markup language. C is a programming language. You can make C generate HTML, but C isn't anything like HTML in the way it functions.


Write a Program to find the square of a given number using Function Overloading?

#include// overloads:char square(char& c){return(c*c);}double square(double& d){return(d*d);}int square(int& i){return(i*i);}int main(){double a=3;double b=square(a); // b=9int c=5;int d=square(c); // d=25char e=12;char f=square(f); // f=144return(0);}Note that since all the overloads will have the exact same implementation and will only differ by type, we can take advantage of C++ templates to generate the overloads for us, automatically, as and when they are required. Thus the following code is functionally equivalent to the previous code:#includetemplateT square(T& t){return(t*t);}int main(){// force compiler to generate double square(double&) overloaddouble a=3;double b=square(a); // b=9// force compiler to generate int square(int&) overloadint c=5;int d=square(c); // d=25// force compiler to generate char square(char&) overloadchar e=12;char f=square(f); // f=144return(0);}

Related questions

Is there a c program to generate the series a a b a b 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; }


Write a program using while loop that generates Fabonaci series up to 200?

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


Create a c plus plus program to generate Fibonacci series?

#include #include void main() { clrscr() int a=0,b=1,c,i,n; coutn cout


What are the letter notes to Mr Bean animated series?

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


How do you generate Fibonacci series in c programming language?

#include&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { int a=-1,b=1,c=0,i,n; clrscr() printf("Enter the limit"); scanf(%d,&amp;n) printf(the resultant fibonacci sequence is:) for(i=1;i&lt;=n;i++) { c=a+b; printf(%d, c) a=b; b=c; } getch(); }


How do you generate a parse tree from an expression using C program?

c code for top down parser


How do you convert A B C in binary code?

A = 1010 b = 1011 c = 1100


Write a java program to generate the Fibonacci Series using for loop?

class Fibonacci { public static void main(String args[]) { System.out.println("enter the number upto u want"); int number=Integer.parseInt(args[0]); int a=0,b=1,c=0; System.out.print(a+" "+b); for(int i=1;i&lt;=number;i++) { c=a+b; System.out.print(c+" "); a=b; b=c; } } } the number are given to the run time where are print the series eg: 5 0 1 1 2 3 5 8 13................


C code for evaluation of prefix expression?

a*b*c


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

type in: "ABCD" in the input line.


Give code for output as a b c d e e d c b a a b c d d c b a a b c c b a a b b a a a?

talkative what is answer on talkative a. afraid b. pulled along c. always talking d. happy e. force to go


C orogram for Fibonacci series?

#include&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { printf("The first 20numbers of Fibonacci series are:"); int a=0, b=1, c, n=2; printf("%d \t, %d", &amp;a, &amp;b); while(n&lt;20) { c=a+b; printf("\t %d", &amp;c); a=b; b=c; n++; } getch(); }