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 are the realtime excercises in C++?
What is object and example?
What is multilevel inheritance in oop?
What is inheritance in simple words?
Why is polymorphism important in oop?
#include
What is the oops and benefits of oops programming?
Why interface is used?
What is encapsulation c#?
What is destructor give example?
How many human genes are polymorphic?
Can an interface inherit a class?
What are the important components of cohesion?
Can static class have constructor?
What is difference between oop and pop?