#include<stdio.h>
main()
{
char c;
int count=0;
scanf("%c",&c);
while(c!=' ')
{
if(c=='$')count++;
scanf("%c",&c);
}
printf("%d",count);
}
1074
最新推荐文章于 2024-03-25 19:48:13 发布
#include<stdio.h>
main()
{
char c;
int count=0;
scanf("%c",&c);
while(c!=' ')
{
if(c=='$')count++;
scanf("%c",&c);
}
printf("%d",count);
}