Computer Science, asked by dalmiarudra, 2 days ago

Write a program using "for loop" to display numbers from 1 to 25. (Hint: use "For Loop")

Answers

Answered by MichMich0945
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