Click here to Skip to main content
15,895,656 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
i want to store two different thousand digit number in asp.net and after storing i also want to multiply this two numbers with each other and store the result in third int,someone please give me any idea on that
Posted

is this what you want?

C#
int value1 = 1000;
int value2 = 2000;

int value3 = value1 * value2;

feel free to ask question
 
Share this answer
 
Comments
[no name] 7-Dec-11 0:09am    
yeah simple logic
Vishwajeet Singh Chouhan 7-Dec-11 0:13am    
not thousand a thousand digit number
D K N T H 7-Dec-11 0:25am    
what do you mean? may i see ur in input and desired output?
Vishwajeet Singh Chouhan 7-Dec-11 0:34am    
i got this challenge from my senior he wants to store any random thousand digit number in something and want to multiply that with another random thousand digit number
D K N T H 7-Dec-11 0:44am    
is 1000 not a thousand digit?, my question is what do you mean by "not thousand a thousand digit number"
You would need to write some code for yourself to do this. Storing the value is no big deal as you need to hold the number in string format anyway. However multiplying becomes a bit of a pain as you would end up with quite a large value to store.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900