1024programmer PHP Addition, subtraction, multiplication and division, area calculation, small cases of printing pyramids and processing methods of oblique pyramids [php entry]

Addition, subtraction, multiplication and division, area calculation, small cases of printing pyramids and processing methods of oblique pyramids [php entry]

addition, subtraction, multiplication and division, area calculation, small cases of printing pyramids and processing methods of oblique pyramids [php entry]

In this case, html js php loop control is used, knowledge related to logical judgment:

When reviewing the loop control language and for loop printing pyramid today, The displayed pyramid is always screwed up in the browser, and Firefox, IE, and Chrome display incorrectly. After checking, I think it should be a problem with the character set, but after modifying the character set, it still doesn’t work

Yes, it was later discovered that the utf-8 font space problem occupies two characters of space, the following are the replacement methods of some spaces I collected:

  character width)
    half blank (1 character width)
    one blank (2 character width)
    narrow blank (less than 1 character width)

?

You can use a name or number as a substitute for a space, the name must be lowercase, and the “;” at the end cannot be omitted.

Click me to view the case

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/addition-subtraction-multiplication-and-division-area-calculation-small-cases-of-printing-pyramids-and-processing-methods-of-oblique-pyramids-php-entry/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: 34331943@QQ.com

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索