for( i = 1; i < n; i++) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

for( i = 1; i < n; i++)

give me the TC of this code

5th Dec 2023, 4:38 PM
FAIQi
3 Answers
+ 3
The code will give error in each language: for(i = 1; i < n; i++) What programming language you mean and want to tag? What means TC?
5th Dec 2023, 4:47 PM
JaScript
JaScript - avatar
+ 1
The output is 2 ? i++ is adding one?
6th Dec 2023, 3:20 PM
Norris Webster
Norris Webster - avatar
+ 1
error cuz var i data type is not mentioned here
7th Dec 2023, 4:20 PM
Alhaaz
Alhaaz - avatar