Computer Science, asked by rainachublu4076, 1 year ago

Correct the given snippet :
int a=45.1;
Float b =15.05;
double c= 92;
sum =0;
sum =(a+b)*c/2;
System .out.println("the answer ="+ans);

Answers

Answered by charlie1505
24

Answer:

float a=45.1, b=15.05;

int c=92;

float sum=0;

sum =(a+b)*c/2;

System .out.println("the answer ="+ans);

Answered by vk6859402
0

Answer:

double a = 45•1

float b = 15 • 05f

double c = 92

double sum = 0

sum= ( a+b ) * c/2

system •out • print in ( "the answer ="+ sum )

Similar questions