C Program For Series

#include<conio.h>
#include<stdio.h>
main()
{
int a=0,b=1,z,tot;
clrscr();

printf("\n%d",b);
for(z=1;z<=10;z++)
{
tot=a+b;
printf("% d",tot);
a=b;
b=tot;
}
getch();

}

Bhanu Namikaze

Bhanu Namikaze is an Ethical Hacker, Security Analyst, Blogger, Web Developer and a Mechanical Engineer. He Enjoys writing articles, Blogging, Debugging Errors and Capture the Flags. Enjoy Learning; There is Nothing Like Absolute Defeat - Try and try until you Succeed.

No comments:

Post a Comment