![snowprincess99447](/avatars/3879.jpg)
snowprincess99447
12.04.2021 •
Computers and Technology
Write a program which reads a series of tokens from standard input.It should print out the sum of all the tokens that are integers, the sum of all the tokens that are floating-point numbers, but not integers, and the total number of tokens of any kind. For example, if input contains the following tokens: 3 3.14 10 squid 10.x 6.0 Then sumInput(); should print the following output: integers: 13 real numbers: 9.14 total tokens: 6 If the input stream as no tokens, the function should print:
Solved
Show answers
More tips
- F Food and Cooking How many stages of coffee roasting are there?...
- G Goods and services Kogda zhdatt Iphone 5? The Latest News and Rumors...
- F Family and Home Parquet or laminate, which is better?...
- L Leisure and Entertainment How to Properly Wind Fishing Line onto a Reel?...
- L Leisure and Entertainment How to Make a Paper Boat in Simple Steps...
- T Travel and tourism Maldives Adventures: What is the Best Season to Visit the Luxurious Beaches?...
- H Health and Medicine Kinesiology: What is it and How Does it Work?...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
- S Style and Beauty Intimate Haircut: The Reasons, Popularity, and Risks...
Answers on questions: Computers and Technology
- C Computers and Technology Ugh these are hard questions...
- P Physics .We know that the angle and revolution of the Earth have several important consequences, among them the uneven heating of the Earth. What is one of the effects of the...
- B Biology Which of these steps would help to reduce the chances of a mudslide occurring in a hilly region? A leaving the trees and other plant cover on the hillsides B removing...
- E English What can be said to be a theme of this passage? a) love and hate b) order and chaos c) heaven and earth d) belief and unbelief...
Ответ: