线性运算 非线性运算

w

忽略不影响次方数或至多升一次方的外层加法运算,即线性运算;

非线性运算估算:4+(4+4)+1=13

#include <stdio.h>
main() {
    int end=9999,sum=0,w=0;
    int wb=0;
    for(w=0; w<=end; w++ ) {
        sum+=w;
        for(wb=0; wb<=end; wb++ ) {
            sum+=wb;
        }
    }
    printf("%12d",sum);
}
原文地址:https://www.cnblogs.com/rsapaper/p/6768364.html