Computer Science, asked by chayanikaniyogi, 9 months ago

Int i,p,k=0;

String word=”DELHI”;

P=word.length();

System.out.println(“The Output is

:”);

While(k<p)

{

System.out.println(word.charAt(k));

K=k+1​

Answers

Answered by luisecubero77
0

Answer:

Explanation:

import java.util.*;

public class Main {

   public static void main(String[] args) throws Exception {

       // Your code here!

       

       System.out.println("XXXXXXXX");

       int i,p,k=0;

       String word="DELHI";

       p=word.length();

       System.out.println("The Output is:");

       while(k<p)

       {

       System.out.println(word.charAt(k));

       k=k+1;

       }

   }

}

Attachments:
Similar questions