Write a program using "for loop" to display numbers from 1 to 25. (Hint: use "For Loop")
Answers
Answered by
0
Java
for (int i = 1; i =< 25; i++){
System.out.println(i);
}
C/C++
int num;
for (num=1;num=<25;num++){
printf("%d\n", num);
}
Python
for num in range (1, 26):
print(num)
Hope this helps you <3
And have a great day ahead!
Similar questions