Loops - English
- subtitles off
- captions off
- English
This is a sample video. To access the full content,
please
Login
- Questions posted on Forums
- C and Cpp Tutorials - English
-
Loops
Explain about for loop??
01-02M 10-20S Prasanna123
Answer last updated on: April 30, 2025, 8:35 p.m.
-
Matrix
#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
04-05M 50-60S Poojanl
Answer last updated on: Aug. 19, 2024, 3:49 p.m.
-
1
First C Program -
2
First Cpp Program -
3
Tokens -
4
Functions -
5
Scope Of Variables -
6
If And Else If statement -
7
Nested If And Switch Statement -
8
Increment And Decrement Operators -
9
Arithmetic Operators -
10
Relational Operators -
11
Logical Operators -
Loops -
13
Arrays -
14
Working With 2D Arrays -
15
Strings -
16
String Library Functions -
17
Working With Structures -
18
Understanding Pointers -
19
Function Call -
20
File Handling In C
Questions posted on ST Forums:
31214 visits
Outline:
Loops -Loops -Syntax for while and do-while loop -Comparison of while and do-while loop -Syntax for -for loop -Errors
| Width: | 800 | Height: | 640 |
|---|---|---|---|
| Duration: | 00:11:11 | Size: | 6.5 MB |
Show video info

