Computer Science, asked by BrainlyProgrammer, 5 hours ago

Language: Java

Write a program that prints output without using print() or println().
_
Difficulty Level: Medium​

Answers

Answered by anindyaadhikari13
16

\textsf{\large{\underline{Solution}:}}

Language Used - Java.

The Co‎de:

public class Print{

   public static void main(String args[]){

       System.out.printf("Output goes here..");

   }

}

------  OR ------

import java.io.*;

public class Print{

   public static void main(String args[]){

       System.out.format("Output goes here..");

   }

}

\textsf{\large{\underline{Explanation}:}}

  • In this question, we cannot use the basic functions like print() or println(). So, we have to use some other functions to carry out the task.
  • We can use printf() or format() function to print any message.

See attachment for output.

Attachments:

anindyaadhikari13: Thanks for the brainliest (๑'ᴗ')ゞ
Similar questions