Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

IN LAB ACTIVITY

NAME: SHALNI PANDEY

REG NO : 19BCE2631

CODE:

#include <iostream>

using namespace std;

int main() {

int numbers[4][7];

cout << "Enter 6 numbers: " << endl;

// Storing user input in the array

for (int i = 0; i < 4; ++i) {

for (int j = 0; j < 7; ++j) {

cin >> numbers[i][j];

cout << "The numbers are: " << endl;

// Printing array elements


for (int i = 0; i < 4; ++i) {

for (int j = 0; j < 7; ++j) {

cout << "numbers[" << i << "][" << j << "]: " << numbers[i][j] << endl;

return 0;

Output:

You might also like