#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
char ab[10];
int a,b=0;
printf("TYPE ANY THINK I WILL SHOW HOW MANY TIME YOU USE SPACE\n\n");
gets(ab);
for(a=0;ab[a]!='\0';a++)
{
if(ab[a]==' ')
//any use in this ' ' it will show you how many time you use
b++;
}
printf("YOU ARE USE SPACE = %d",b);
getch();
}
#include<conio.h>
void main()
{
clrscr();
char ab[10];
int a,b=0;
printf("TYPE ANY THINK I WILL SHOW HOW MANY TIME YOU USE SPACE\n\n");
gets(ab);
for(a=0;ab[a]!='\0';a++)
{
if(ab[a]==' ')
//any use in this ' ' it will show you how many time you use
b++;
}
printf("YOU ARE USE SPACE = %d",b);
getch();
}
0 Comments
USE ANONYMOUS PROFILE IF YOU WANT D'NT SHARE EMAIL