Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

program to find a smallest number in an array

Answer Posted / farhana parvin sunny

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

int main(void)
{
int n,i,l,a[10];
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
l=a[0];
for(i=0;i<n;i++)
{
if(l>a[i])
{
l=a[i];
}
}
printf("the lowest number is %d",l);
getch();
return 0;
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the red-black trees?

1199


Is sizeof a keyword in c?

1014


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

1236


what are the 10 different models of writing an addition program in C language?

1941


What are the types of functions in c?

1036


How can I change the size of the dynamically allocated array?

1205


about c language

2074


What is c language in simple words?

1112


What is the use of c language in real life?

1070


How can I avoid the abort, retry, fail messages?

1183


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2623


What is the scope of local variable in c?

1200


What does the && operator do in a program code?

1282


Write a code of a general series where the next element is the sum of last k terms.

1092


What is the use of #include in c?

1126