con tro ham

#include <iostream> using namespace std; float Cong(float a, float b){ return a + b; } float Tru(float a, float b){ return a - b; } float Nhan(float a, float b){ return a * b; } float Chia(float a, float b){ return a / b; } int main(){ float a, b; cout<<"Nhap so a: "; cin>>a; cout<<"Nhap so b: "; cin>>b; float (*Call) (float a, float b); cout<<"Chon bieu thuc: "<<endl<<"1. Cong"<<endl<<"2. Tru"<<endl<<"3. Nhan"<<endl<<"4. Chia"<<endl; Call = &Chia; cout<<Call(a,b); return 0; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.