0
Please point out what's wrong with this code
#include <iostream> using namespace std; int main() { float marks[50][3]; int i,j; int num,nom; /*size for row and column*/ cin>>num>>nom; for(i=0;i<num;i++) { for(j=0;j<nom;j++) cin>>marks[i][j]; } for(i=0;i<num;i++) { for(j=0;j<nom;j++) cout<<marks[i][j]; } return 0; }
5 Réponses
+ 4
It's running perfectly
There are no errors just give number of inputs correctly
for ex 1
2
3
4
and output will be 34
+ 2
try using <iostream .h> as I don't see other errors anymore
+ 1
check your cins and couts
+ 1
one should be "<<" the other should be ">>"
+ 1
for cout "<<" this cascading sign is used