Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- void main()
- {
- float a=0, b=0, c;
- char s, prs;
- printf("\nVvedite predlogenie:\n");
- s=getchar();
- while(s!='\n')
- {
- b++;
- if(s==' ')
- a++;
- s=getchar();
- }
- c=(a*100)/b;
- printf("\n a=%f",a);
- printf("\nprobely sostovlyaut c=%f\n",c);
- getch();
- }
Add Comment
Please, Sign In to add comment