hey buddy u just need to count da words, so here is a bit of code, m naive here but just tried my best to put out dis 4 u man
char a[100];
int count=0;
printf("Enter the sentence:");
gets(a);...
Type: Posts; User: vinds.ruls
hey buddy u just need to count da words, so here is a bit of code, m naive here but just tried my best to put out dis 4 u man
char a[100];
int count=0;
printf("Enter the sentence:");
gets(a);...
thank you Quzah, yes I made mistake there, ye it should be the way you have stated it. Thank you once again.
And sorry I couldn't visit you all for a long time.
Hi Ubha ,
Actually if is good here but as you want it in switch there is one way, first calculate the index, let it be in variable a, then u can write like this
sw=a/10;...
Hi vart,
I mean the program should be something like this
void main()
{
char ans;
ans=getchar();
fflush(stdin);
while (ans!='d')
hi,
you got to understand one thing here, getchar accepts a character from the standard input device .i.e. keyboard, when u press a character it is stored in 'ans' first, then you press enter...
hi man,
Hey Im new to this programming language, so dont mind if I say something wrong ok.
I think you can go with this code:
k=0;
for (i=0;i<9;i++)
{
hello everyone,
Im also new to this programming language. Please, forgive me if I say something wrong.
Actually the person want to display the time taken between two destinations, so he has to...