Outputs are separated by spaces.

Source: Internet
Author: User

Outputs are separated by spaces.

Total time limit: Ms memory limit: 65536kB

Description

Read a character, an integer, a single-precision floating-point number, a double-precision floating-point number, and then output them in order, and separate them with a space. 6 decimal places are reserved when the floating point is output.

Input
There are four rows:
The first line is a character;
The second row is an integer;
The third row is a single-precision floating point number;
The fourth row is a double-precision floating point number.
Output
The output characters, integers, single-precision floating-point numbers, and double-precision floating-point numbers are separated by spaces.
Sample Input
A122.33.2
Sample output
A 12 2.300000 3.200000



# Include <stdio. h>
Int main ()
{
Char ch;
Int;
Float B;
Double c;
Scanf ("% c \ n", & ch );
Scanf ("% d \ n", & );
Scanf ("% f \ n", & B );
Scanf ("% lf", & c );
Printf ("% c % d %. 6f %. 6f", ch, a, B, c );
Return 0;
}

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.