Write a program to print following outputs in C language

*
**
***
****

  1. #include<stdio.h>
  2. #include<conio.h>
  3. main()
  4. {
  5. int i,j,n;
  6. clrscr();
  7. printf("Enter number : ");
  8. scanf("%d",&n);
  9. for(i=1;i<=n;i++)
  10. {
  11. for(j=1;j<=i;j++)
  12. {
  13. printf("*");
  14. }
  15. printf("\n");
  16. }
  17. }

Comments

Popular posts from this blog

Hive Bike Share Assignment Passed

Linux Assignments - Practise

HDFS performance,tuning, and robustness