|
Write a C++ program with a loop structure that reads in 5 integers one by one, calculate the sum of the values that are multiples of 3 and display the final result.
and
Write a C++ program that reads from keyboard 3 words, with proper input prompt. Then for these 3 words that were read, the program displays first the word of the longest length, then the word of the shortest length, and finally the remaining last word. You may assume that these 3 words are all different in lengths, or consider a word to be of the longest length if no other words exceed it in length.
and
Write a C++ program with a loop structure that reads in 5 integers one by one, calculate the sum of the values that are multiples of 3 and display the final result.
Thanks
|