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

//Largest Number - FScOnline.info

int main()
{
  int i,num,n,large=0;

  printf("How many numbers: ");
  scanf("%d",&n);
  
  for(i=0; i<n; i++)
  {
    printf("\nEnter number %d: ",i+1);
    scanf("%d",&num);
    if(num>large)
    large=num;
  }

  printf("\n\nThe Largest Number is %d",large);
  
  getch();
  return 0;
}

 Output

Share.

I'm a full-stack developer, specializing in the PHP, JS, Wordpress, MEAN Stack, MERN Stack & Django. I hold a high standard of quality in everything that I do.

1 Comment

  1. what to do if 2 no. are equal and each int is stored in a variable, and u need to print the name of both variable

Leave A Reply