This is a sample video. To access the full content, please Login
Explain about for loop??
#include <stdio.h>int main(){ int rowCount, columnCount, i, j; int firstMatrix[10][10], secondMatrix[10][10], resultMatrix[10][10]; printf("Number of rows of matrices to be subtracted : "); scanf("%d", &rowCount); printf("Number of columns matrices to be subtracted : "); scanf("%d", &columnCount); printf("Elements of first matrix : \n"); for (i = 0; i < rowCount; i++) for (j = 0; j < columnCount; j++) scanf("%d", &firstMatrix[i][j]); printf("Elements of second matrix : \n"); for (i = 0; i < rowCount; i++) for (j = 0; j < columnCount; j++) scanf("%d", &secondMatrix[i][j]); printf("Difference of entered matrices : \n"); for (i = 0; i < rowCount; i++) { for (j = 0; j < columnCount; j++) { resultMatrix[i][j] = firstMatrix[i][j] - secondMatrix[i][j]; printf("%d\t",resultMatrix[i][j]); } printf("\n"); } return 0;}ByN.L.PoojaEce departmentIRTT
1721 visits
Outline:લૂપ્સ લૂપ્સ વ્હાઈલ અને ડુ વ્હાઈલ લૂપ્સ સિન્ટેક્સ વ્હાઈલ અને ડુ વ્હાઈલ લૂપ્સ સરખામણી સિન્ટેક્સ for for loop એરર
લૂપ્સ લૂપ્સ વ્હાઈલ અને ડુ વ્હાઈલ લૂપ્સ સિન્ટેક્સ વ્હાઈલ અને ડુ વ્હાઈલ લૂપ્સ સરખામણી સિન્ટેક્સ for for loop એરર
Show video info
Pre-requisite