Find greatest number out of 10 number without using loop.
Answer Posted / satya
#include<stdio.h>
void main()
{
static int big=0,a=0,cnt=0;
printf("enter number");
scanf("%d",&a);
if(a>big)
big=a;
if(cnt<=10)
{
cnt++
main();
}
printf("largest number amongest 10 numbers is :%d",big);
}
| Is This Answer Correct ? | 4 Yes | 11 No |
Post New Answer View All Answers
write a program in c language to print your bio-data on the screen by using functions.
What is pointers in c with example?
What does s c mean in text?
What does emoji p mean?
Without Computer networks, Computers will be half the use. Comment.
Can i use “int” data type to store the value 32768? Why?
What are two dimensional arrays alternatively called as?
Explain what is wrong in this statement?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
What is the role of this pointer?
What is scanf_s in c?
How do c compilers work?
#include
What is the deal on sprintf_s return value?
What does int main () mean?