The first lesson

Source: Internet
Author: User

Describe

This year has been six grade, Dad gave her a study program design class.

In the first lesson, the teacher is talking about how to enter a number, and then output it as it is.

In your opinion, it's easy, isn't it?
Well, please write the same procedure.

 
Input
The first line is an integer N (n<10) that represents the number of groups of test data)
The next n rows have only one number per line (either a decimal or an integer)
The number of digits (integer digits + decimal digits) does not exceed 19 bits
Output
output each number as-is, one row per output
Sample input
23.55
Sample output
3.55

1 Importjava.util.Arrays;2 ImportJava.util.Scanner;3 4  Public classMain {5      Public Static voidMain (string[] args) {6Scanner scanner=NewScanner (system.in);7         intT;8 String S;9         Tent=scanner.nextint (); One          while(true){ A             if(t==0) -                  Break; -t--; the              -s=Scanner.next (); - System.out.println (s); -         }  +     }  -}

The first lesson

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.