C#.net Interview Question
A=10
B=5
C=A+B
Print C
The above will be given in a multiline textbox. You need to
parse the above input, store values for A,B&c. And you have
to display the value of C.
Answer Posted / murthyknm
public class Sum
{
public static void main(String aaa[])
{
int A=10,B=5,C=0;
C=A+B;
System.out.println(" "+C);
}
}
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
What is solid in oops?
What is property in oops?
What is a null tree?
What is encapsulation selenium?
Get me a number puzzle game-program
What is pointer in oop?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
Why multiple inheritance is not allowed?
Why is destructor used?
Can we have inheritance without polymorphism?
Can we create object of interface?
What is constructor overloading in oop?
Can we override main method?
What type of loop is a for loop?
write knight tour problem which is present in datastructure