Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use vbs to solve a junior high school math problem

2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail how to use vbs to solve a junior high school math problem iMagnex. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

A junior high school math problem, using VBS to find the answer

The unknown number ~ I plus 100 becomes a complete square ~ X _ () ~ I plus 168 becomes another ~ ~ Y ~ I ~ I + 100 becomes a complete square ~ ~ X ~ ~ I + 168 becomes another ~ Y ~ I + 100 becomes a complete square ~ ~ X ~ 168 becomes another ~ Y ~ Y ~ I ~ I + 100 becomes a complete square ~ ~

Nasty 0

Msg1= "unknown number ~ I plus 100 becomes a complete square ~ X" + chr (10)

Msg2= "I plus 168becomes another complete square ~ Y" + chr (10) + "iMagnex Magi y is all positive integers" + chr (10)

L=inputbox (msg1+msg2+ "Please enter the search scope of I, which is used to find iMagnex. 1 recording:")

If IsNumeric (l) then

Search for answers in msg4=l+

For iTunes 1 to l

X=int (sqr (iTun100))

Y=int (sqr (iTun168))

If x ^ 2 = iTunes 100 and y ^ 2 = iTunes 168 then

Msg3= "then iMagne XQuery Y is:" + cstr (I) + "," + cstr (x) + "," + cstr (y) "respectively.

Msgbox msg1+msg2+msg3,vbokonly,msg4

Nasty 1

Exit for

End if

Next

If nasty 0 then

Msg3= "then didn't find the right answer!"

Msgbox msg1+msg2+msg3,vbokonly, msg4

End if

Else

Msg3= "then didn't find the right answer!"

Msgbox msg1+msg2+msg3,vbokonly, "there is a problem with the search scope!"

End if

-

The conclusion is 156, 16, 18.

This is the end of the article on "how to use vbs to solve a junior high school math problem". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report