What is c programming?
C programming is a general-purpose computer programming language developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating system.Although C programming was designed for implementing system software,It is also widely used for developing portable application software.
C programming is one of the most popular programming languages of all time and there are very few computer architectures for which a C compiler does not exist. C programming has greatly influenced many other popular programming languages.
tutorial for c,c examples source code,simple examples of c programs,simple c program examples
Bellow is c program example for c programming practice
C source codes for Fibonacci Series
/* *********************************************
This program display Fibonacci Series.
author-Nikunj v Gandhi
from-gujarat(surat)
Web Developer(PHP ZCE)
email-nik_gandhi007@yahoo.com
http//my-source-codes.blogspot.com
************************************************/
#include<conio.h>
#include<stdio.h>
void main()
{
int n,m,k,i,d=0;
m=1;
k=0;
clrscr();
printf("enter the value on n?");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
d=m+k;
if(d>n)
{
break;
}
printf("%d",d);
m=k;
k=d;
}
getch();
}




No comments:
Post a Comment