Program of Java:-
Sum of two number without initialization(not to enter any numeral or constant as for adding or any data type),without using class(like scanner or io class),without using any function(like math function),
Answers
Answered by
1
Answer:
class Sum
{
int n,k,sum;
public static void main()
{
sum=n+k;
System.out.println(sum);
}
}
Explaination:
default value of n,k and sum=0
sum=n+k
sum=0+0;
=0 Answer........
Please mark me as BRAINLIST
Similar questions
CBSE BOARD XII,
5 months ago
English,
5 months ago
History,
10 months ago
English,
10 months ago
Chemistry,
1 year ago