Saved Bookmarks
| 1. |
Rewrite the program following program usingif else#includeusing namespace std;int main(){int a,b,big;cout<<"Enter two integers";cin>>a>>b;big=(a>b)?a:b;cout<<"Biggest number is "<<big<<endI;return 0;} |
|
Answer» # include using namespace std; int main() { int a,b,big; cout<<"Enter two integers"; cin>>a>>b; if(a>b) big=a; else big=b; cout<<"Biggest number is "<<big<<endI; return 0; } |
|