fork download
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <conio.h>
  4. #define N 5
  5. #define M 5
  6. using namespace std;
  7. int main()
  8. {
  9. double sum=0; int k=1;
  10. double A[N][N];
  11. for (int i=0;i<N;i++)
  12. {
  13. for (int j=0;j<N;j++)
  14. {
  15. printf("%d ",A[i][j]);
  16. }
  17. printf("\n");
  18.  
  19. for (int i =0; i < N; i++) {
  20. sum += A[i][N - 1 - i];
  21. printf("%d", sum);
  22. }
  23. getch();}}
  24.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
1 2 3
1 5 6
5 6 1
compilation info
prog.cpp:3:19: fatal error: conio.h: No such file or directory
compilation terminated.
stdout
Standard output is empty