Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  a.c
Language: C/C++
Code:
#include<stdio.h>


main()
{
char line[100]="I am the best";
int count=0,i=0;


while(line[0]!='')
{
if(line[i]==32)
count++;
i++;
}

if(line[i]=='')#include<stdio.h>


main()
{
char line[100]="I am the best";
int count=0,i=0;


while(line[0]!='')
{
if(line[i]==32)
count++;
i++;
}

if(line[i]=='')
{
count++;
}
printf("The numbers are%dn",count);


}
{
count++;
}
printf("The numbers are%dn",count);


}
          
          
Comments: