CBSE BOARD X, asked by godie, 1 year ago

Write a java programme to display the use of basic data types

Answers

Answered by Anonymous
5
\textbf{Hey There!}

=>Here is ur Program<=

Public class DemoVar
{
public static void main(string args[])
{
int a = 10;
float = 2.4f;
char c = 'A';
System.out.printIn("Value of integer is: " +
a);
System.out.printIn("Value of Float variable: is:"+b);
System.out.printaIn("Value of Character variable is: "+b);
}
}

|HopE__It__HelpS| :-|

godie: i think there is problem in giving spaces ok fine i will mange it thanks
Answered by DashingMunda
2

Answer:

>Here is ur Program<=

Public class DemoVar

{

public static void main(string args[])

{

int a = 10;

float = 2.4f;

char c = 'A';

System.out.printIn("Value of integer is: " +

a);

System.out.printIn("Value of Float variable: is:"+b);

System.out.printaIn("Value of Character variable is: "+b);

}

}

|HopE__It__HelpS| :-|

Similar questions