Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please finish off the simple multiplication table problem that we started in cla

ID: 3566903 • Letter: P

Question

Please finish off the simple multiplication table problem that we started in class. For simplicity, "hard-code" the two vectors and their content so that you have data to work on. In other words, define and initialize the vectors that you are going to use in one step, as we did in class. ( C programming, not C+ or C++).

Here is the Code we did in class

int main(){

int a = 5, b = 10;

  

printf("Switching the values in two variables ");

  

switch_value(&a, &b);

  

printf("A = %d B = %d ", a, b);

  

return 0 ;

  

  

}

void switch_value(int *a, int *b){

  

int temp;

  

temp = *a;

*a = *b;

*b = temp;

  

return;

}

Explanation / Answer

#include <stdio.h>

int main() {

int num, i = 1;

int num=5;

printf("Multiplication table of %d: ", num);

while (i <= 10) {

printf(" %d x %d = %d", num, i, num * i);

i++;

}

return 0;

}

Basically your question was not correct,you didnt given clarity. Any how i given multpliation table code in C