1.

Write a program to print a string in a given patternI N D I A

Answer»

I can help with JAVA, will that work?


Snippet:

public void PATTERN1(){

String pattern = "INDIA"

for (int N=0; n System.out.println(pattern.charAt(n));
}
}

HOPEFULLY you know how to call functions in the main FUNCTION...



Discussion

No Comment Found