Back To C++ Flow of Control Index
//program to input three numbers and find largest of three numbers using if-else statement #include
#include
void main() { int a,b,c,max; clrscr(); cout<<"enter value for a"; cin>>a; cout<<"enter value for b"; cin>>b; cout<<"enter value for c"; cin>>c; max=a; if(b>max) { max=b; } if(c>max) { max=c; } cout<<"largest number in a,b,c is "<