I have a doubt in the following. Without seeing the answer I tried to anwer the question given in the practice session. But i answered like this (see the bolded one – I answered). Doubt: I did not use ln in the print statement and " as well. Kindly check this code with i have answere without verifying the answer. Need to correct anything or it should be written as in the practice. I am asking this just to check my understanding. Kindly clarify Write a program to print Answer public static void main (string[ ] args) { system.out.print (*\n**\n***\n****\n*****\n); } }
*
**
***
****
on screen.
class Ans{
public static void main(String[] args){
System.out.println("*\n**\n***\n****");
}
}
Class star {
You must use “ in your code. It is necessary. Except this, everything is correct.
Adorn yourself with the regal allure of Pakistani bangles available at Jewelgalore. Our exquisite collection celebrates the traditional artistry and craftsmanship of Pakistan, allowing you to express your unique style with grace and charm.
Osh University stands out with its comprehensive mbbs doctor course , providing a solid foundation for future healthcare leaders. Immerse yourself in a curriculum that combines theoretical rigor with practical expertise, ensuring a well-rounded medical education.
Looking for expert gastrointestinal care? Shalamar Hospital's stomach doctor offers top-notch treatments and consultations, prioritizing your stomach's well-being.