+ 1

How a change cpp to c#?please help

#include <iostream> using namespace std; int MenentukanNilaiFungsi(int a,int b); int main() { int x1,x2; cout<<"Masukan Nilai X1: "; cin>>x1; cout<<"Masukan Nilai X2: "; cin>>x2; cout<<endl; MenentukanNilaiFungsi(x1, x2); } int MenentukanNilaiFungsi(int a,int b) { int x1x2[] = {a,b}; int hasil[] = {0}; for(int i=0;i<2;i++) { cout<<i+1<<".X"<<i+1<<" = "<<x1x2[i]<<endl; hasil[i]=2*(x1x2[i]*x1x2[i])+(7*x1x2[i])-4; cout<<"f(x)=2xÂČ+7x-4"<<endl;

11th Apr 2019, 10:57 PM
Mutiara Safitri
1 Answer
+ 4
Could you elaborate? If you want to change the language I would re-write it.
12th Apr 2019, 4:51 PM
Clueless Coder
Clueless Coder - avatar