Skip to content

Commit 33e3df2

Browse files
committed
solve 1st part of 5th problem array in C
1 parent bd4939a commit 33e3df2

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

solve_problem.c

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,20 @@ int main()
131131
return 0;
132132
}
133133

134-
// #include <stdio.h>
135-
// int main(){
136134

137-
// return 0;
138-
// }
135+
// 👉👉 🔹🔹 5️⃣ create a 2D array , storing the tables 2& 3
136+
137+
#include <stdio.h>
138+
void soteTable(int arr[] [10] ,int n , int m ,int number );
139+
int main(){
140+
int tables[2][10];
141+
return 0;
142+
}
143+
// Function Diefinition
144+
void soteTable(int arr[] [10] ,int n , int m ,int number ){
145+
for(int i = 0; i<m; i++){
146+
arr[n][10] = number *( i+1);
147+
}
148+
}
139149

140150
// 1️⃣ 2️⃣ 3️⃣ 4️⃣ 5️⃣ 6️⃣ 7️⃣ 8️⃣ 9️⃣ 🔟

0 commit comments

Comments
 (0)