#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{clrscr();
int n,big,i,x[50];
printf("Enter number of values\n");
scanf("%d",&n);
for(i=0;i<n;i++)
{printf("Enter the values\n");
scanf("%d",&x[i]);
}
big=x[0];
for(i=0;i<n;i++)
{if(x[i]>big)
big=x[i];
}
printf("Biggest number=%d",big);
getch();
}
#include<conio.h>
#include<math.h>
void main()
{clrscr();
int n,big,i,x[50];
printf("Enter number of values\n");
scanf("%d",&n);
for(i=0;i<n;i++)
{printf("Enter the values\n");
scanf("%d",&x[i]);
}
big=x[0];
for(i=0;i<n;i++)
{if(x[i]>big)
big=x[i];
}
printf("Biggest number=%d",big);
getch();
}
No comments:
Post a Comment