Write a C program to print pattern below:
*
* *
* * *
* * * *
#include<stdio.h> #include<conio.h> main() { int n,i,j; char k='*'; printf("\n enter hou meny lines"); scanf("%d",&n); for(i=0;i<=n;i++) { for(j=0;j<i;j++) { printf("\t%c",k); } printf("\n"); } getch(); }
Output:
Write a C-Program That Uses Functions To Insert A Sub-String In To A Given Main String From A Given Position.
Write a C program to print the following output.
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Short Notes : UML