#include<iostream.h> class CuriousTab { int K; public: void CuriousTabFunction(float, int , char); void CuriousTabFunction(float, char, char); }; int main() { CuriousTab objIB; objIB.CuriousTabFunction(15.09, 'A', char('A' + 'A')); return 0; } void CuriousTab::CuriousTabFunction(float, char y, char z) { K = int(z); K = int(y); K = y + z; cout<< "K = " << K << endl; }
#include<iostream.h> int main() { float Amount; float Calculate(float P = 5.0, int N = 2, float R = 2.0); Amount = Calculate(); cout<< Amount << endl; return 0; } float Calculate(float P, int N, float R) { int Year = 1; float Sum = 1 ; Sum = Sum * (1 + P * ++N * R); Year = (int)(Year + Sum); return Year; }
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.