Click here to Skip to main content
15,888,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: inet error Pin
Richard MacCutchan16-Oct-17 5:35
mveRichard MacCutchan16-Oct-17 5:35 
QuestionMFC Activex Control Pin
RichardK15115-Oct-17 20:53
RichardK15115-Oct-17 20:53 
GeneralRe: MFC Activex Control Pin
Richard MacCutchan16-Oct-17 3:55
mveRichard MacCutchan16-Oct-17 3:55 
GeneralRe: MFC Activex Control Pin
RichardK15116-Oct-17 4:36
RichardK15116-Oct-17 4:36 
GeneralRe: MFC Activex Control Pin
Richard MacCutchan16-Oct-17 5:37
mveRichard MacCutchan16-Oct-17 5:37 
GeneralRe: MFC Activex Control Pin
leon de boer16-Oct-17 20:34
leon de boer16-Oct-17 20:34 
GeneralRe: MFC Activex Control Pin
RichardK15122-Oct-17 23:49
RichardK15122-Oct-17 23:49 
GeneralRe: MFC Activex Control Pin
leon de boer25-Oct-17 9:18
leon de boer25-Oct-17 9:18 
QuestionTo arrange n numbers in descending order ? Pin
Tarun Jha13-Oct-17 9:02
Tarun Jha13-Oct-17 9:02 
AnswerRe: To arrange n numbers in descending order ? Pin
jeron113-Oct-17 9:08
jeron113-Oct-17 9:08 
QuestionRe: To arrange n numbers in descending order ? Pin
David Crow13-Oct-17 16:06
David Crow13-Oct-17 16:06 
AnswerRe: To arrange n numbers in descending order ? Pin
Richard MacCutchan13-Oct-17 22:44
mveRichard MacCutchan13-Oct-17 22:44 
AnswerRe: To arrange n numbers in descending order ? Pin
«_Superman_»15-Oct-17 18:02
professional«_Superman_»15-Oct-17 18:02 
AnswerRe: To arrange n numbers in descending order ? Pin
CPallini16-Oct-17 3:21
mveCPallini16-Oct-17 3:21 
QuestionTo find biggest of n numbers ? Pin
Tarun Jha13-Oct-17 5:44
Tarun Jha13-Oct-17 5:44 
i need to find the biggest number, but it doesn't print the biggest number.

#include <conio.h>
#include <stdio.h>

int main(){

	int num[50], i=0, j, count =0;
	//int k;

	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(i=0; i<=count -1; i++){

        for(j=0; j<=count-1; j++){

            if(i != j)
                num[i] > num[j];
            else
                break;
        }

        printf("%d is the biggest number", num[i]);
	}

	//printf("%d is the biggest number", num[j]);

	return 0;

}


modified 13-Oct-17 12:07pm.

AnswerRe: To find biggest of n numbers ? Pin
jschell13-Oct-17 5:56
jschell13-Oct-17 5:56 
GeneralRe: To find biggest of n numbers ? Pin
Tarun Jha13-Oct-17 6:02
Tarun Jha13-Oct-17 6:02 
GeneralRe: To find biggest of n numbers ? Pin
jschell15-Oct-17 7:11
jschell15-Oct-17 7:11 
AnswerRe: To find biggest of n numbers ? Pin
Richard MacCutchan13-Oct-17 6:16
mveRichard MacCutchan13-Oct-17 6:16 
GeneralRe: To find biggest of n numbers ? Pin
Tarun Jha13-Oct-17 6:22
Tarun Jha13-Oct-17 6:22 
GeneralRe: To find biggest of n numbers ? Pin
jeron113-Oct-17 6:34
jeron113-Oct-17 6:34 
GeneralRe: To find biggest of n numbers ? Pin
Richard MacCutchan13-Oct-17 6:51
mveRichard MacCutchan13-Oct-17 6:51 
GeneralRe: To find biggest of n numbers ? Pin
Tarun Jha13-Oct-17 7:14
Tarun Jha13-Oct-17 7:14 
GeneralRe: To find biggest of n numbers ? Pin
David Crow13-Oct-17 16:10
David Crow13-Oct-17 16:10 
GeneralRe: To find biggest of n numbers ? Pin
Richard MacCutchan13-Oct-17 22:33
mveRichard MacCutchan13-Oct-17 22:33 

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.