Posts

Showing posts from April, 2024

Object: To print the table of first 10 numbers.

} #include <stdio.h> #include <conio.h> int main() int table[10][10]; int ij: for (i=0; i<10; i++) { for (j=0; j<10; j++) table[i][j]=(i+1)*(1+1); } Printf("The table of first 10 numbers as follows :........"); for (i=0; i<10; i++) { for (j=0; j<10; j++) { Printf("%\n", table [i][j]); } return 0; }

Object: To print the following

#include <stdio.h> #include <conio.h> main() { int i,j; for (i=0; i<5; i++) { for (j=0; j<=i; j++) { printf("*"); printf("\n"); } } getch(); }