Ask your own question, for FREE!
Computer Science 7 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!
Latest Questions
Arriyanalol: i need help
2 days ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
2 days ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
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!