Here is your code with the already suggested fixes.
Code:
#include<stdio.h>
int main()
{
int n,f=0,s=1,t,m=2;
printf("This program will print fibnacci series\n");
printf("How many Number to be printed in the series?\n");
scanf("%d",&n);
printf("0 1");
do
{
t=f+s;
printf(" %d",t);
f=s;
s=t;
m++;
}
while(m<=n);
printf("%d",m)
getchar();
}
The output should not give you 6, the next number should be 8. The whole series up to 100 is 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89.
I don't see an immediate problem without digging too deep into your logic (which no one likes to do when nothing is commented). I imagine the problem is coming from somewhere in your do, while loop. This is a common program for beginners to write, so do a board search for 'fibonacci', and see if your logic statements differ from what others have used.
edit: Blast... beaten again... Or you could just follow Prelude's suggestion.