Here is another C program for displaying an empty diamond. This is another C program code for displaying a triangle. The user will input the base for the diamond (or triangle). The maximum input for this program is 40 although can easily be changed when implemented. #include #include int base, row, column, temp; main() { // Input Area – do-while is used to validate such that only inputs from 0 to 40 are accepted do { system(“cls”); printf(“Enter base : [...]
Here is a C program for printing a multiplication table based on a user input n. The resulting table will be n x n. The maximum input is limited to 15 in order for the results to readable. Higher input will scroll the results. #include #include int number, row, column, result; main(void) { /*Input Area – Input number must be from 0 to 15, else input loop will continue */ do { system(“cls”); printf(“Enter max value: “); scanf(“%d”, &number); result=number; [...]






