Computer Science, asked by indar1845, 1 year ago

Create a program that will display the text as " be good and do good in five separate lines leaving space between them the lines


BrainlyPromoter: you want programs in which language

Answers

Answered by BrainlyPromoter
5
Hello dear user!

We will be using the statement "System.out.println" in this Java program.

The java program is give below:
public class Print
{
public static void main{String args[]}
{
System.out.println("Be Good and Do Good");
System.out.println(" ");
System.out.println("Be Good and Do Good");
System.out.println(" ");
System.out.println("Be Good and Do Good");
System.out.println(" ");
System.out.println("Be Good and Do Good");
System.out.println(" ");
System.out.println("Be Good and Do Good");
}
}

_______________________________

There you go! We have got the program as you asked.

Thanks!

Bhavanavindamuri: gud answer !!!!! :)
Answered by annas1159
1

Answer:

Is this C program correct or not for the above question?

#include<stdio.h>

void main()

{

printf(" be \n\n good \n\n and \n\n do \n\n good");

getch();

}

Similar questions