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

write a program that takes two numbers from user that
prints the smallest number

Answer Posted / hemant jakkani

#include <stdio.h>
#include <string.h>

main()
{
int x,y;
scanf("%d%d",&x,&y);
if(x>y)
printf("First Number is greater: %d",x);
else
printf("Second Number is greater:%d",y);
}

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an operator function? Describe the function of an operator function?

1127


Explain rtti.

1062


Show the declaration for a pointer to function returning long and taking an integer parameter.

1120


what are the events occur in intr activated on interrupt vector table

1742


What is class invariant in c++?

1211


What is c++ and its features?

1004


Explain polymorphism?

1066


Which operator cannot overload?

1033


Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].

1443


How do you declare A pointer to function which receives an int pointer and returns a float pointer

1194


What is a far pointer? where we use it?

1063


Explain how overloading takes place in c++?

1030


Explain the isa and hasa class relationships. How would you implement each?

1112


What is the v-ptr?

1148


What relational operators if statements in c++?

1160