13,899,227 members

# C / C++ / MFC

 Re: To find biggest of n numbers ? jschell13-Oct-17 5:56 jschell 13-Oct-17 5:56
 Re: To find biggest of n numbers ? Tarun Jha13-Oct-17 6:02 Tarun Jha 13-Oct-17 6:02
 Re: To find biggest of n numbers ? jschell15-Oct-17 7:11 jschell 15-Oct-17 7:11
 Re: To find biggest of n numbers ? Richard MacCutchan13-Oct-17 6:16 Richard MacCutchan 13-Oct-17 6:16
 Re: To find biggest of n numbers ? Tarun Jha13-Oct-17 6:22 Tarun Jha 13-Oct-17 6:22
 Re: To find biggest of n numbers ? jeron113-Oct-17 6:34 jeron1 13-Oct-17 6:34
 Re: To find biggest of n numbers ? Richard MacCutchan13-Oct-17 6:51 Richard MacCutchan 13-Oct-17 6:51
 Re: To find biggest of n numbers ? Tarun Jha13-Oct-17 7:14 Tarun Jha 13-Oct-17 7:14
 ohh! Thank you. but the code written below only works some time.. ```#include #include int main(){ int num[50], i=0, j, count =0; int k, b; printf("Enter 0 to exit entering integers.\n\nEnter your integers:\n"); do{ scanf("%d", &num[i]); i++; count++; }while(num[i-1]!=0); for(k=0; k<=count-2; k++){ for(j=0; j<=count-2; j++){ if(k != j){ num[k] > num[j]; b = k; //printf("%d", num[k]); continue; } else break; } //printf("%d is the biggest number \n", num[k]); } printf("%d is the biggest number", num[b]); return 0; }```modified 13-Oct-17 13:39pm.
 Re: To find biggest of n numbers ? David Crow13-Oct-17 16:10 David Crow 13-Oct-17 16:10
 Re: To find biggest of n numbers ? Richard MacCutchan13-Oct-17 22:33 Richard MacCutchan 13-Oct-17 22:33
 Re: To find biggest of n numbers ? leon de boer13-Oct-17 6:50 leon de boer 13-Oct-17 6:50
 while error ? bluatigro12-Oct-17 0:23 bluatigro 12-Oct-17 0:23
 Re: while error ? David Crow12-Oct-17 2:35 David Crow 12-Oct-17 2:35
 Re: while error ? Manish K. Agarwal12-Oct-17 4:22 Manish K. Agarwal 12-Oct-17 4:22
 Re: while error ? Manish K. Agarwal12-Oct-17 4:26 Manish K. Agarwal 12-Oct-17 4:26
 Where is GetTickCount64()? inlandchris11-Oct-17 11:10 inlandchris 11-Oct-17 11:10
 Re: Where is GetTickCount64()? `Randor` 11-Oct-17 11:52 `Randor` 11-Oct-17 11:52
 Re: Where is GetTickCount64()? inlandchris11-Oct-17 17:24 inlandchris 11-Oct-17 17:24
 Re: Where is GetTickCount64()? `Randor` 11-Oct-17 19:26 `Randor` 11-Oct-17 19:26
 Re: Where is GetTickCount64()? leon de boer11-Oct-17 15:29 leon de boer 11-Oct-17 15:29
 Re: Where is GetTickCount64()? inlandchris11-Oct-17 17:27 inlandchris 11-Oct-17 17:27
 Re: Where is GetTickCount64()? Richard MacCutchan11-Oct-17 21:23 Richard MacCutchan 11-Oct-17 21:23
 Re: Where is GetTickCount64()? inlandchris12-Oct-17 2:09 inlandchris 12-Oct-17 2:09
 Re: Where is GetTickCount64()? leon de boer11-Oct-17 22:14 leon de boer 11-Oct-17 22:14
 Re: Where is GetTickCount64()? inlandchris12-Oct-17 2:14 inlandchris 12-Oct-17 2:14
 Last Visit: 22-Mar-19 6:38     Last Update: 22-Mar-19 6:38 Refresh « Prev1...104105106107108109110111112113 Next »