Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This program is designed to help programmers calcuate how many words are in a sentance For C/C++
- #
- # email me at: dopegalaxy131@gmail.com
- #
- # char string[10] = "hello,world!"; This is wrong because the original sentance has a length of 12
- #
- # but with my program....
- #
- # char string[12] = "Hello,world!";
- #
- # Now with this program, the correct length has been placed.
- #
- # This program was made by Adm1n_0v3rride (C) 2017
- #!/usr/bin/env python3
- string = input("Please enter the word that you are trying to spell: ")
- length = len(string)
- print(length)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement