Question

Complete the following program segment with a set of operators that displays the characters in Name...

Complete the following program segment with a set of operators that displays the characters in Name except the blank.

For (K = 0; K < 9; K++)

If (Name[K] _______ “ “) Then

Write Name[K]

End If

End For

0 0
Add a comment Improve this question Transcribed image text
Answer #1

For (K = 0; K < 9; K++)

     If (Name[K] <> " ") Then

          Write Name[K]

     End If

End For

Explanation: The statement If (Name[K] <> " ") Then in the above loop check each character in Name if the character is not blank then it displays the character.

Hope the question belongs to VB, so <> is the not equal to symbol in VB. Let me know if you have any concerns with the above.

Add a comment
Know the answer?
Add Answer to:
Complete the following program segment with a set of operators that displays the characters in Name...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT