Computer Science, asked by bhan61, 1 year ago

Write a program to declare the variable negativeIntegerand initalize with value -29. You have to print the variable negativeInteger.

Keep the name of your class as Main
Use the System.out.println()statement for printing.

Example output: negativeInteger is -29


bhan61: can anyone reply me fast waiting

Answers

Answered by nitish8089
1
public class Main{

public static void main(String...args){

int negativeInteger=-29;

System.out.println("negativeInteger is "+negativeInteger);

}

}

bhan61: it should print as negative number is-29
nitish8089: sorry i dont see format...
bhan61: kk
nitish8089: when you answer why asked??
nitish8089: when you know answer then why you asked??
bhan61: i need some clarification sooo
bhan61: i am new to java programming
Similar questions