Alibabacloud.com offers a wide variety of articles about print multiplication table, easily find your print multiplication table information here online.
Recently, I was going to review the shell, just to see the shell operation, and to write a simple 99 multiplication table like a beginner. It is suggested that you can run shell scripts directly in Http://www.runoob.com/try/runcode.php?filename=helloworldtype=bash if you do not want to install Linux environments.First, the previous code#!/bin/bash#使用while循环I=1;While [$i-le 9];d o #-le means less than or equ
99 multiplication table is also a lot of interview test procedures, to examine the PHP interviewer's logical thinking ability, is mainly the understanding of the algorithm and application, the following is a small series of PHP written in the output of 99 multiplication formula PHP code:
After seeing, is not very simple, is two loops, the outer control l
The 1 script is as follows[[email protected] ~]# vim 99.sh #!/bin/bash # 9*9 Table # 2015.5.26 by Luzhi for i ' {1..9}do for J ' {1..9} do If [$j-le $i] then c=$ (($i * $j)) ECHO-E-n "$j * $i = $c \ T" fi do echo "" Done2 Operating effect650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6D/76/wKiom1VkjluAEf4kAAFZHpoDIUI736.jpg "title=" 99.png "alt=" Wkiom1vkjluaef4kaafzhpodiui736.jpg "/>This article is from the "Tiandaochouqin" blog, make sur
The 9-9 multiplication table is generally a triangle, with each number and the for (I = 1; I
The Code is as follows:
I, j, n = 9 "* |" "1" (I = 2; I
Effect
Publicclasschengfabiao{publicstaticvoidmain (String []args] {for (inti=1;iThis article is from the "Programmer's Learning Day" blog, so be sure to keep this source http://laiyicong.blog.51cto.com/10811813/1712222Java 99 multiplication Table
This article mainly introduces PHP double-layer loop implementation 99 multiplication table, interested in the friend's reference, I hope to help you.
Examples are as follows:
"Run Results"
If there is only one sentence inside the curly brace, you can remove the curly brace, #include Number one represents the number of rows that can prove:99 multiplication Table Double cycle
1
One
The interfaces are:
The rule is: Check the trend of the 9-9 multiplication table, determine the for loop of the outermost layer, and check the column changes: from 1 to 9, or 9 to 1.
Output resultsSummarize the points of knowledge1. For loopFor v_1 in [list]DoDoneList if it is "1 2 3", then the V_1 value is an array 1 2 3If you want to assign only one value to v_1 at a time, you need to write separately, i.e. "1" "2" "3"2. Arithmetic operations in Bashk=$ ((i * j))There must be no spaces around the equals sign, no spaces for assignment.In addition, the arithmetic operation needs to be enclosed in $ (()), which means that the operation is performed first and the result is cal
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.