How do I write a function with inconsistent formulas in a loop?
Source: Internet
Author: User
How do I write a function with inconsistent formulas in a loop? For () & nbsp ;{& nbsp; value 1 = type 1; & nbsp ;}& nbsp ;}for () & nbsp; {& nbsp; for () & nbsp ;{& nbsp; value 2 = Formula 2 (value 1); how to write a function with inconsistent formulas in a loop?
For ()
{
For ()
{
Value 1 = Formula 1;
}
}
For ()
{
For ()
{
Value 2 = Formula 2 (value 1 );
}
}
Actually there are 5 layers of loops ..
Type 2: the value 1 must be obtained to calculate the value 2.
Can I write a file similar.
Function 1 (string parameter)
{}
Function 1 (type 1 );
So that the expression is included?
Or is there any other solution?
Is it necessary to replicate the entire multiple cycles multiple times? --
------ Solution --------------------
Does the condition in for affect the calculation of Formula 1 and Formula 2?
Not quite clear ......
------ Solution --------------------
Isn't that true?
For ()
{
For ()
{
Value 1 = Formula 1;
For ()
{
For ()
{
Value 2 = Formula 2 (value 1 );
}
}
}
}
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