Write a macro to display string "Cobol"
Answers
Answered by
0
/* Java Program Example - Print String COBOL*/
import java.util.Scanner;
public class JavaProgram
{
public static void main(String args[])
{
String str;
Scanner scan = new Scanner(System.in);
System.out.print("Enter Your String To Be Printed : ");
str = scan.nextLine();
System.out.print("COBOL,"+ str);
}
}
OUTPUT: COBOL
Similar questions
Computer Science,
6 months ago
English,
6 months ago
English,
6 months ago
Social Sciences,
1 year ago
Hindi,
1 year ago
English,
1 year ago
English,
1 year ago