Click here to Skip to main content
15,901,283 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Adding Row Numbers to DataGridView Pin
Yusuf7-Feb-11 6:10
Yusuf7-Feb-11 6:10 
GeneralRe: Adding Row Numbers to DataGridView Pin
Member 22565337-Feb-11 6:56
Member 22565337-Feb-11 6:56 
AnswerRe: Adding Row Numbers to DataGridView Pin
Luc Pattyn7-Feb-11 8:19
sitebuilderLuc Pattyn7-Feb-11 8:19 
AnswerRe: Adding Row Numbers to DataGridView Pin
Member 22565337-Feb-11 7:08
Member 22565337-Feb-11 7:08 
AnswerRe: Adding Row Numbers to DataGridView Pin
GenJerDan7-Feb-11 9:32
GenJerDan7-Feb-11 9:32 
AnswerRe: Adding Row Numbers to DataGridView Pin
RobCroll8-Feb-11 1:07
RobCroll8-Feb-11 1:07 
QuestionI have this task but I don't know what I should do , Please help me. (get Factor) Pin
Honeyboy_206-Feb-11 0:15
Honeyboy_206-Feb-11 0:15 
AnswerRe: I have this task but I don't know what I should do , Please help me. (get Factor) Pin
Honeyboy_206-Feb-11 0:35
Honeyboy_206-Feb-11 0:35 
if value   n 	return	  reason
14	   2	 1	  14 has two factors, 2 and 7
18	   5	 0	  18 does not have 5 factors, it only has four (2, 3, 6 and 9)
25	   2	 0	  25 = 5*5 but we are only interested in distinct factors so the 5 is only counted once.
36	   7	 1	  36 has seven factors (2, 3, 4, 6, 9, 12, 18). Note that 6 is counted only once.
7	   0	 1	  all prime numbers are 0-factored
-5	  anything	  0	the value must be greated than 0


and I do code know but I doesn't know what is meant by return type?

public static int GetFactorCount(int numberToCheck, int n)
     {
         int factorCount = 0;
         int sqrt = n;

         // Start from 1 as we want our method to also work when numberToCheck is 0 or 1.
         for (int i = 1; i < sqrt; i++)
         {
             if (numberToCheck % i == 0)
             {
                 factorCount += 2; //  We found a pair of factors.
             }
         }

         // Check if our number is an exact square.
         if (sqrt * sqrt == numberToCheck)
         {
             factorCount++;
         }

         return factorCount;
     }

GeneralRe: I have this task but I don't know what I should do , Please help me. (get Factor) [modified] Pin
_Erik_8-Feb-11 3:38
_Erik_8-Feb-11 3:38 
AnswerRe: I have this task but I don't know what I should do , Please help me. (get Factor) Pin
Richard MacCutchan6-Feb-11 1:35
mveRichard MacCutchan6-Feb-11 1:35 
GeneralRe: I have this task but I don't know what I should do , Please help me. (get Factor) Pin
#realJSOP7-Feb-11 5:20
professional#realJSOP7-Feb-11 5:20 
AnswerRe: I have this task but I don't know what I should do , Please help me. (get Factor) Pin
Abhinav S7-Feb-11 6:42
Abhinav S7-Feb-11 6:42 
AnswerRe: I have this task but I don't know what I should do , Please help me. (get Factor) Pin
Bernhard Hiller8-Feb-11 0:46
Bernhard Hiller8-Feb-11 0:46 
QuestionTab Control Page Not Responding Fast Enough Pin
Member 22565334-Feb-11 4:54
Member 22565334-Feb-11 4:54 
AnswerRe: Tab Control Page Not Responding Fast Enough Pin
Yusuf4-Feb-11 5:33
Yusuf4-Feb-11 5:33 
GeneralRe: Tab Control Page Not Responding Fast Enough Pin
Member 22565334-Feb-11 5:39
Member 22565334-Feb-11 5:39 
AnswerRe: Tab Control Page Not Responding Fast Enough Pin
Luc Pattyn4-Feb-11 6:19
sitebuilderLuc Pattyn4-Feb-11 6:19 
AnswerRe: Tab Control Page Not Responding Fast Enough Pin
GenJerDan4-Feb-11 9:57
GenJerDan4-Feb-11 9:57 
Questionnet framework installation Pin
siaswar3-Feb-11 11:27
siaswar3-Feb-11 11:27 
AnswerRe: net framework installation Pin
Roger Wright3-Feb-11 11:40
professionalRoger Wright3-Feb-11 11:40 
AnswerRe: net framework installation Pin
RobCroll3-Feb-11 13:21
RobCroll3-Feb-11 13:21 
AnswerRe: net framework installation Pin
Luc Pattyn3-Feb-11 14:06
sitebuilderLuc Pattyn3-Feb-11 14:06 
GeneralRe: net framework installation Pin
RobCroll3-Feb-11 14:51
RobCroll3-Feb-11 14:51 
AnswerRe: net framework installation Pin
Abhinav S4-Feb-11 0:14
Abhinav S4-Feb-11 0:14 
QuestionEventing and Memory leaks Pin
RobCroll2-Feb-11 5:04
RobCroll2-Feb-11 5:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.