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 |
write a program in c++ to implement stack using functions in header file stack.h
Is it possible for a member function to use delete this?
What is #include cstdlib in c++?
What is a pure virtual function? Why is it represented as = 0...how is the internal implementation for the same
Describe functional overloading?
Consider the following code fragment: int main(void) { int m = 4; mystery ( m ); mystery ( m ); printf("%d", m); return 0; } What is the output on the monitor if mystery is defined as follows ? void mystery (int m) { m = m+3; }
write a program in c++ to generate imp z y x w v w x y z z y x w x y z z y x y z z y z z
How can I disable the "echo" feature?
What is the exit function in c++?
Explain virtual class?
what is C++ objects?
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?