C Program uses a for loop to print the powers of 2 table for the power 0 to 20, both positive and negative

#include #include void main() { long int p; int n; double q; printf(“------------------------------------------------------------”); printf(“ 2 to power n      n        2 to power -n”); printf(“------------------------------------------------------------”); p=1; for(n=0; n

Continue ReadingC Program uses a for loop to print the powers of 2 table for the power 0 to 20, both positive and negative

C program to print the multiplication table from 1*1 to 12*10

#include #include #define COLMAX 10 #define ROWMAX 12 void main() { int row, column, y; row=1; printf(“MULTIPLICATION TABLE ”); printf(“----------------------------------------”); do { column=1; do { y=row*column; printf(“%d”, y); column=column +1;…

Continue ReadingC program to print the multiplication table from 1*1 to 12*10