Write a program that stores the multiplication table in a two-dimensional array, and then shows a multiplication table, and indicate each element is even or odd with * character for even ones.
please write it in c #
Answers
Answer:
#include <stdio.h>
int main() {
int n, i;
printf("Enter an integer: ");
scanf("%d", &n);
for (i = 1; i <= 10; ++i) {
printf("%d * %d = %d \n", n, i, n * i);
}
return 0;
}
hope it helps you
if yes then pls mark the brainliest and make me a freind as i have no freinds
C program is a program that stores the multiplication table in a two-dimensional array and then shows a multiplication table and indicate each element is even or odd.
Explanation :-
In a C program, all lines start with # are processed by preprocessor which is a program invoked by the complier. In a very basic term, preprocessor takes a C program and produces another C program. The produced program has no lines starting with #, all such lines are processed by the preprocessor. In the above example, preprocessor copies the preprocessed code of studio h to our file. The h files are called header files in C program. These header files generally contain declaration of functions. We need studio h for the functions print used in the program.