write a program that takes two numbers from user that
prints the smallest number
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / vaishnavi
#include<iostream.h>
void main()
{
int a,b;
cout<<"Enter two numbers";
cin>>a>>b;
if(a>b)
cout<<a<<"is greater";
else
cout<<b<<is greater";
}
Is This Answer Correct ? | 2 Yes | 1 No |
What is lambda expression c++?
Define the operators that can be used with a pointer.
What is the use of :: operator in c++?
What do you mean by const correctness?
What is difference between array and vector in c++?
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
Why do we need templates?
What are single and multiple inheritances in c++?
Describe protected access specifiers?
What is extern c++?
which is the easy way to divide any integer by 2?
Please explain the reference variable in c++?