C/C++ Programs
Home
C programs
C++ Programs
Home
About
Contact
Home
C programs
Write a C program to find the largest number among 10 given numbers
Write a C program to find the largest number among 10 given numbers
Bibek Adhikari
April 04, 2013
#include<stdio.h>
int main()
{
int a[10],i,n,j;
for(i=0;i<10;i++)
{
printf("Enter the number(%d)",i);
scanf("%d",&a[i]);
}
n=a[0];
for(j=0;j<10;j++)
{
if (n<a[j])
n=a[j];
}
printf("The largest number is : %d",n);
return 0;
}
Post a Comment
0 Comments
Most Popular
C++ Program to find Area and Perimeter of Rectangle Using Class
May 24, 2013
Write a C++ Program to find the distance between two points
May 24, 2013
Write a C program that defines a structure called student , store the student's name,roll no,address,date of birth and print it
April 04, 2013
Write a C program to find the sum of first 10 even numbers
April 03, 2013
Write a C program to find the largest number among 10 given numbers
April 04, 2013
C program to implement Top down parser with backtracking.
February 18, 2016
Write a C++ program to find largest number among 10 numbers
May 24, 2013
Write a C program to find whether the number is prime or composite
April 03, 2013
C++ Program Using Switch Statement
May 24, 2013
Write a C program to find LCM of Given Number using function
April 04, 2013
More programs
Loading...
Python Codes
Loading...
Contact form
0 Comments