Get the following Output:
1
3 3
5 5 5
7 7 7 7
9 9 9 9 9
#include <stdio.h> int main() { int i,j; for(i=1;i<=9;i=i+2) { for(j=1;j<=i;j=j+2) { printf("%d ",i); } printf("\n"); } return 0; }
Get the following Output:
5
10 10
15 15 15
20 20 20 20
25 25 25 25 25
#include <stdio.h> int main() { int i,j; for(i=5;i<=25;i=i+5) { for(j=5;j<=i;j=j+5) { printf("%d ",i); } printf("\n"); } return 0; }
Get the following Output:
*
* *
* * *
* * * *
* * * * *
#include <stdio.h> int main() { int i,j; for(i=1;i<=5;i=i+1) { for(j=1;j<=i;j=j+1) { printf("* "); } printf("\n"); } return 0; }