write a program to print the Natural numbers 1 to 25
Answers
Answered by
0
Answer:
n= input (' Enter a natural number :') i=1 while i<= n: print "i"= ,1 i=i+1 .
Answered by
0
In Java:
public class natural
{
public static void main ()
{
for ( int i= 1; i <=25; i++;)
{
System.out.println( i);
}
}
}
Hope u found it helpful!!!!
public class natural
{
public static void main ()
{
for ( int i= 1; i <=25; i++;)
{
System.out.println( i);
}
}
}
Hope u found it helpful!!!!
Similar questions