avg of two no. java program without package
Answers
Answered by
1
I think so question is wrong
Answered by
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