Addition
-
simply i want to know how to add two integer numbers in C#. i'd appreciate your help guys.
-
simply i want to know how to add two integer numbers in C#. i'd appreciate your help guys.
int firstInt = 3;
int secondInt = 2;
int result ;result = firstInt + secondInt; //result will be equal to 5
The + operator will add together most any of your basic types: int, long, short, string, etc. Hope that helps. :)
Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?
-
int firstInt = 3;
int secondInt = 2;
int result ;result = firstInt + secondInt; //result will be equal to 5
The + operator will add together most any of your basic types: int, long, short, string, etc. Hope that helps. :)
Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?
but here you arleady assigned values to the two integers, what I need is to make a program that takes two input numbers from user and then adds them. thx a lot for ur reply anyway.
-
but here you arleady assigned values to the two integers, what I need is to make a program that takes two input numbers from user and then adds them. thx a lot for ur reply anyway.
-
but here you arleady assigned values to the two integers, what I need is to make a program that takes two input numbers from user and then adds them. thx a lot for ur reply anyway.
Well does it need to be a console application or a Windows Forms application? Or even an ASP.NET application? The basic principle remains the same...it's just a matter of gathering that input from the user.
Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?
-
Well does it need to be a console application or a Windows Forms application? Or even an ASP.NET application? The basic principle remains the same...it's just a matter of gathering that input from the user.
Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?
How about voice recognition? That'd be cool :) -- Help me! I'm turning into a grapefruit! Phoenix Paint - back from DPaint's ashes!
-
How about voice recognition? That'd be cool :) -- Help me! I'm turning into a grapefruit! Phoenix Paint - back from DPaint's ashes!
Even better, thought recognition. The ultimate lazy mans computer.
website // Project : AmmoITX //profile Another Post by NnamdiOnyeyiri
-
Even better, thought recognition. The ultimate lazy mans computer.
website // Project : AmmoITX //profile Another Post by NnamdiOnyeyiri
It looks like you want to add two numbers Would you like help?
- Get help thinking of a number
- Just carry on adding without help
Oh god... -- Help me! I'm turning into a grapefruit! Phoenix Paint - back from DPaint's ashes!
-
It looks like you want to add two numbers Would you like help?
- Get help thinking of a number
- Just carry on adding without help
Oh god... -- Help me! I'm turning into a grapefruit! Phoenix Paint - back from DPaint's ashes!
And since it's a thought computer, the thing is going to project an image of Clippy directly into my optical nerves. Great. :rolleyes:
Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?