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).
記事を読む →