write the program for maximum of the following numbers?
122,198,290,71,143,325,98
Answer Posted / divya
#inclufe<stdio.h>
Void main()
{
int a[7];
for(i=0;i<=7;i++)
{
printf("Enter the nos");
scanf("%d",&a[i]);
}
for(i=0;i<=7;i++)
{
if(a[i]>a[i+1])
printf("%d",a[i]);
else
if(a[i]<a[i+1])
printf("%d",a[i+]);
else
if(a[i]==a[i+1])
printf("%d",a[i]);
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Difference between strcpy() and memcpy() function?
What is zero based addressing?
Differentiate between ordinary variable and pointer in c.
how to build a exercise findig min number of e heap with list imlemented?
What is pointer & why it is used?
How do you declare a variable that will hold string values?
Why static is used in c?
Stimulate calculator using Switch-case-default statement for two numbers
Distinguish between actual and formal arguments.
What functions are in conio h?
Explain what is dynamic data structure?
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
What is #error and use of it?
What are reserved words?
What does %c do in c?