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...

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


Please Help Members By Posting Answers For Below Questions

How many keywords (reserve words) are in c?

1103


Write a code on reverse string and its complexity.

997


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

1097


What is an identifier?

992


how to count no of words,characters,lines in a paragraph.

4398


Explain what will the preprocessor do for a program?

1024


Can a pointer be static?

1034


What is null in c?

1029


provide an example of the Group by clause, when would you use this clause

2150


What is c standard library?

1162


What is a null string in c?

1001


What is string constants?

1115


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

1248


What are categories used for in c?

1049


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1906