//Lucas series - 2,1,3,4,7,11,18
#include <stdio.h>
#define PRINTMAX 50
void lucas(int first, int second) //Prints 52 numbers
{
int count=1,total;
printf("%d\t%d\t",first,second);
while (count < PRINTMAX)
{
total = second + first;
printf("%d\t",total);
first = second;
second = total;
count++;
}
}
int main(void)
{
lucas(2,1);
return 0;
}
Write a C program to Draw a RAINBOW and fill the suitable colors ...
you can use strstr()
I don't use that function in C programme.
write a program to print the series 1/12+1/22+.........+1/n2 ?
You don't. Trigraph sequences are outdated by thirty years.
Write a C program to Draw a RAINBOW and fill the suitable colors ...
abhimanyu
substracion of any two number program in c
you can use strstr()
I don't use that function in C programme.
#include(stdio.h) int main ()
Write your program and if you are having a problem post it here with a description of the problem you are having. What you are asking is for someone to do your homework for you.
#include <stdio.h> int main (void) { puts ("abcdefedcba"); return 0; }
Please do.
It is the "Tower of Hanoi" and it is a puzzle. When you can solve the puzzle you can write the program, when you have learned enough to write simple programs. You do want to be able to write computer programs, don't you?
Lewis C. Lucas was born on 1867-11-03.
of course he did