Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is solid in oops?

1116


What is property in oops?

1055


What is a null tree?

1133


What is encapsulation selenium?

997


Get me a number puzzle game-program

2244


What is pointer in oop?

1043


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

2190


Why multiple inheritance is not allowed?

1148


Why is destructor used?

1014


Can we have inheritance without polymorphism?

1019


Can we create object of interface?

1127


What is constructor overloading in oop?

1129


Can we override main method?

1195


What type of loop is a for loop?

1082


write knight tour problem which is present in datastructure

2648