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

How would you implement a substr() function that extracts a sub string from a given string?

1053


Is c++ still in demand?

1153


Is multimap sorted c++?

1011


Which software is used to run c++ program?

1007


What information can an exception contain?

1145


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

1073


Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.

3883


Differentiate between realloc() and free().

1059


Which bit wise operator is suitable for turning off a particular bit in a number?

1118


Is python written in c or c++?

1153


what is COPY CONSTRUCTOR and what is it used for?

1076


Are there interfaces in c++?

1020


Can static member variables be private?

1185


What is c strings syntax?

1151


State the difference between delete and delete[].

1110