In C++, I can read a matrix with something like
int main()
{
int i,j,k,n;
float a[10][10]={0},d;
clrscr();
cout<<"No of equations ? "; cin>>n;
cout<<"Read all coefficients of matrix with b matrix too "<<endl;
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
cin>>a[i][j];
...
return 0;}
in C I cannot use
#include <iostream>
and related functions as
- clrscr();
- cout<<
- cin>>
How should I fix my code to work in c?