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
1
public class Main{
public static void main(String...args){
int negativeInteger=-29;
System.out.println("negativeInteger is "+negativeInteger);
}
}
public static void main(String...args){
int negativeInteger=-29;
System.out.println("negativeInteger is "+negativeInteger);
}
}
Similar questions