Sunday 1 November 2015

Write a program to print the following pattern using loop in c language.

Write a program to print the following pattern using loop in c language. #include<stdio.h> #include<conio.h> Void n m... thumbnail 1 summary

Write a program to print the following pattern using loop in c language.

#include<stdio.h>
#include<conio.h>
Void n main()
{
            Int n,c,k;
Printf(“Enter Your no:”);
Scanf(“%d”,&n);
For(C=1;C<=n;i++)
{
            For(K=1;K<=C;K++)
            {
                        Printf(“%*”);
            }
Printf(“\n”);
}
}

Output :-

*
*    *   
*    *    *
*    *    *    *

*    *    *    *    *


No comments

Post a Comment