Find greatest number out of 10 number without using loop.
Answer Posted / dheeraj
#include<stdio.h>
#include<conio.h>
input(int a[]);
find(int []);
int i=0,a[10],j=0,max=0;
main()
{
clrscr();
printf("enter no");
input(a);
find(a);
printf("\nmax no is==%d",max);
}
input(int a[10])
{
i++;
scanf("%d",&a[i]);
if(i<10)
{
input(a);
}
}
find(int a[10])
{
if(j<10)
{
j++;
if(max<a[j])
{
max=a[j];
}
find(a);
}
}
| Is This Answer Correct ? | 9 Yes | 8 No |
Post New Answer View All Answers
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
What is the purpose of ftell?
Should a function contain a return statement if it does not return a value?
How was c created?
what are the facialities provided by you after the selection of the student.
What are the features of c language?
How the c program is executed?
How can I manipulate strings of multibyte characters?
What is the meaning of ?
Differentiate between the = symbol and == symbol?
number of times a digit is present in a number
Are global variables static in c?
Do variables need to be initialized?
What are identifiers and keywords in c?
What does d mean?