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 are arithmetic operators?

940


Can you pass a vector to a function?

910


Describe about storage allocation and scope of global, extern, static, local and register variables?

1201


What is the difference between structure and class?

1159


Explain the volatile and mutable keywords.

1029


What are the steps in the development cycle?

1033


Will this c++ program execute or not?

1018


What are arrays c++?

1048


Define 'std'.

1125


What are the 3 levels of programming languages?

994


What is the use of 'using' declaration in c++?

1091


Do you know what is overriding?

1103


What is the type of 'this' pointer? When does it get created?

912


What is the difference between a baller and a reference in C++?

1051


If a function doesn’t return a value, how do you declare the function?

1004