1). Loop:- for (int i=0; i<=n; i++) ----------> n { a = a+b; //Constant ------------->c } c*n = c.n = O(n) 2). Nested Loop:- multiplication for(int i=0; i<=n; i++) ------ > n { ...
This website is created for the purpose of free education. This website is helps beginners who are the new in the field of Computer Science.