Write a C++ program to accept
three number and print the
lowest.
Attachments:
Answers
Answered by
1
Answer:
#include<iostream.h>
#include<conio.h>
int main()
{
clrscr();
int a , b , c ;
cout<<"\n Enter the three integer numbers";
cin>>a>>b>>c;
if (a <= b && a <= c)
cout << a << " is the smallest";
else if (b <= a && b <= c)
cout << b << " is the smallest";
else
cout << c << " is the smallest";
getch();
return 0;
}
Explanation:
The c++ code will be executed on turbo c++.
Similar questions