Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/302.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 从整数中获取一对整数_C#_.net_Algorithm_Math - Fatal编程技术网

C# 从整数中获取一对整数

C# 从整数中获取一对整数,c#,.net,algorithm,math,C#,.net,Algorithm,Math,可能重复: 我有一个整数,我想从中得到一对数字 var myDigit = 2345346792; 我需要从我的数字中找出第5和第6个数字,即34 在不使用子字符串的情况下,得到它们的数学方法是什么 我上一篇文章中的其他问题: 重复先前的解决方案,使用100代替10作为模数,并调整除法

可能重复:

我有一个整数,我想从中得到一对数字

var myDigit = 2345346792;
我需要从我的数字中找出第5和第6个数字,即34

在不使用子字符串的情况下,得到它们的数学方法是什么

我上一篇文章中的其他问题:

重复先前的解决方案,使用
100
代替
10
作为模数,并调整除法