17:35 Maximum of 4 numbers | |
#include <iostream> using namespace std; int main() { int a,b,c,d; cout <<"enter a,b,c,d"<<endl; cin >>a>>b>>c>>d; cout <<(a>b?(a>c?(a>d?a:d):(c>d?c:d)):(b>c?(b>d?b:d):(c>d?c:d))); return 0; } | |
|
Total comments: 0 | |
Site menu
Section categories
Search
Our poll
Statistics
Total online: 1 Guests: 1 Users: 0 |
Main » 2011 June 10 » Maximum of 4 numbers
|