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.



C#.net Interview Question A=10 B=5 C=A+B Print C The above will be given in a multiline tex..

Answer / 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 4 No

Post New Answer

More OOPS Interview Questions

What is difference between abstraction and encapsulation?

0 Answers  


What is DeadlyDiamondDeathProblem ?

1 Answers  


What is a template?

7 Answers  


what is ns string? what is ns array?

1 Answers  


How does polymorphism work?

0 Answers  






What is the use of oops?

0 Answers  


What are generic functions and generic classes?

5 Answers  


How to Increment the value of the empid E001 for each and every employee by using the programe?

1 Answers   Accenture,


What is the difference between const int *ptr and int const *ptr???

2 Answers  


Can you explain polymorphism?

0 Answers  


Why it is called runtime polymorphism?

0 Answers  


Get me a number puzzle game-program

0 Answers  


Categories