manyifelse.cpp
Server-Architecture-Firmware/manyifelse.cpp
#include <iostream>
using namespace std;
int main(){
int a = 20 , b = 30 , c = 40;
if(a > b ){
if (a > c ){
cout<<"A is greater: "<<a<<endl;
}
}
else if (b > c)
{
cout<<"B is greater: "<<b;
}
else{
cout<<"C is greater: "<<c;
}
return 0;
}
관련 글
Armstrong.cpp
Armstrong.cpp — cpp source code from the Server-Architecture-Firmware learning materials (Server-Architecture-Firmware/Armstrong.cpp).
글 읽기 →MaxOfTwo.cpp
MaxOfTwo.cpp — cpp source code from the Server-Architecture-Firmware learning materials (Server-Architecture-Firmware/MaxOfTwo.cpp).
글 읽기 →RTTI.cpp
RTTI.cpp — cpp source code from the Server-Architecture-Firmware learning materials (Server-Architecture-Firmware/RTTI.cpp).
글 읽기 →console_input.cpp
console_input.cpp — cpp source code from the Server-Architecture-Firmware learning materials (Server-Architecture-Firmware/console_input.cpp).
글 읽기 →function.cpp
function.cpp — cpp source code from the Server-Architecture-Firmware learning materials (Server-Architecture-Firmware/function.cpp).
글 읽기 →main.cpp
main.cpp — cpp source code from the Server-Architecture-Firmware learning materials (Server-Architecture-Firmware/main.cpp).
글 읽기 →