Ask your own question, for FREE!
Computer Science 10 Online
OpenStudy (anonymous):

code a function that takes in a string and returns the number of words in that string

OpenStudy (anonymous):

#include <stdio.h> int main() { char s[1000],i; printf("Enter a string: "); scanf("%s",s); for(i=0; s[i]!='\0'; ++i); printf("Length of string: %d",i); return 0; } or u can use strlen()

OpenStudy (anonymous):

Visual Basic for the lulz Dim x as String Dim length as Integer x = InputBox("Enter your String") length = x.length MsgBox(Length)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!