在下面的程序段中,对x的赋值语句的频度为()。 for(i=1;i<n;i++) for(j=1;j<n;j++) x=x+1;

A.O(2n) B.O(n) C.O(n^2) D.O(log2n)

时间:2023-11-21 07:04:53

相似题目