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

Define Virtual function in C++.

1085


When should I use unitbuf flag?

1006


Why is swift so fast?

1116


What is c++ hash?

1104


Can static member variables be private?

1166


Explain bubble sorting.

1072


Explain about Virtual Function in C++?

1014


Is vector a class in c++?

1039


what is the use of void main() in C++ language?

1119


Define upcasting.

1034


Describe the advantage of an external iterator.

1038


What is meant by forward referencing and when should it be used?

1009


What is constructor and destructor in c++?

1109


How to implement is-a and has-a class relationships?

1014


How did c++ get its name?

1028