Computer Science, asked by navratnapanday, 10 months ago

avg of two no. java program without package​

Answers

Answered by khrajendra
1

I think so question is wrong

Answered by sauravchot56
1

Answer:

should I tell only logic

Explanation:

here it is

but remember without package program is incomplete

int a,b,c;

public void main()

Scanner s=new Scanner();

System.out.println(enter the value of a );

System.out.println(enter the value of b);

C= a+b;

System.out.println(avg. of two no is :+c);

if satisfied mark it as branliest

Similar questions