Language: Java
Write a program that prints output without using print() or println().
_
Difficulty Level: Medium
Answers
Answered by
16
Language Used - Java.
The Code:
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..");
}
}
- 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