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

Is swift better than c++?

997


Describe new operator and delete operator?

1144


What is runtime polymorphism in c++?

1231


When there is a global variable and local variable with the same name, how will you access the global variable?

1159


What is #include math h in c++?

1139


Can we inherit constructor in c++?

1146


Explain the uses oof nested class?

1195


What are pointer-to-members in C++? Give their syntax.

1186


List different attributes in C++?

1149


What is data structure in c++?

1196


What is endl?

1209


Is c++ slower than c?

1112


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3966


What is the rule of three?

1052


What are the 4 types of library?

1248