program to find a smallest number in an array
Answer Posted / suse
main()
{
int a[20],n,i,s;
scanf("%d,%d",&n,&a[i]);
s=a[0];
for(i=0;i<n;i++)
{
if(s>a[i])
{
s=a[i];
}
}
printf("the smallest number is %d",s);
}
| Is This Answer Correct ? | 5 Yes | 7 No |
Post New Answer View All Answers
Is javascript written in c?
What are the applications of c language?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
What is pass by reference in functions?
Sir i need notes for structure,functions,pointers in c language can you help me please
Is Exception handling possible in c language?
What is default value of global variable in c?
How to declare a variable?
What is queue in c?
What is a const pointer in c?
Explain what are global variables and explain how do you declare them?
What is the difference between array and structure in c?
How can I pad a string to a known length?
What are different types of variables in c?
What is pointer to pointer in c?