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 const in c++?
What are stacks? Give an example where they are useful.
What are the differences between a struct and a class in C++?
Explain what is class definition in c++ ?
what are Access specifiers in C++ class? What are the types?
Write a C++ Program to Multiply two Numbers
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
int *p = NULL; printf("%1d",p) ; what will be the output of this above code?
Is dev c++ a good compiler?
Which software is best for c++ programming?
What do you mean by static variables?
What is a tuple c++?