Computer Science, asked by monisha36, 8 months ago

write a program and print numbers from 1 to 25(non anonymous question )

Answers

Answered by larshikhakrishnan
2

Answer:

IDK which programing language you want  but I am providing java here

public class sample{

public static void main(String[] args)  

{

        int n=26, i;

 System.out.print("Numbers from 1 to 25:");

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

     System.out.print(i +" ");

 }

}

}

Answered by Anonymous
1

Answer:

In the3 given question u have not mentioned the program name

public class new{

public static void main(String[] args)  

{

       int x=26, i;

System.out.print("Numbers from 1 to 25:");

for(i=1; i < x; i++){

    System.out.print(i +" ");

 } } }

I have provided the code in JAVA language

Hope this helps you

Similar questions