Piramid ProgramSGSARAT GOUDA9yAsked Dec 11, 2016, 5:56 AM1.2kLearn iOS Programming12536847910 Print Out put.......
Krishna Rajput Singh9y agoPosted Dec 11, 2016, 9:43 AMAccepted answerHello Sarat Thank you for writing below program helpful for you...:) #include#includeint main(){ int i,c,n,temp; printf("Enter the Number of rows in pyramid"); scanf("%d",&n); temp=n; for(i=0;i<=n;i++) { for(c=0;c printf(""); temp--; for(c=0;c<=1*i-1;c++) printf("1"); printf("\n"); for(c=0;c<=1*i-1;c++) printf("25"); printf("\n"); for(c=0;c<=1*i-1;c++) printf("368"); printf("\n"); for(c=0;c<=1*i-1;c++) printf("47910"); printf("\n"); //return 0; } return 0;}if find helpful answer mark as a correct or accepted -2SGSARAT GOUDA9y agoPosted Dec 12, 2016, 9:05 AMOutput not correct Plz Check my question....0SGSARAT GOUDA9y agoPosted Dec 12, 2016, 8:25 AMthanks.......Bro0Khaja Moizuddin9y agoPosted Dec 11, 2016, 1:56 PMhttp://www.programmingsimplified.com/c-program-examples You can learn all logical programs here.... Thanks and hope THIS helps you0Amit Kumar Singh9y agoPosted Dec 11, 2016, 12:24 PMhey try this static void Main(string[] args) { int rows, i, j, number = 1; Console.Write("Enter number of rows: "); rows = Convert.ToInt32(Console.ReadLine()); for (i = 1; i <= rows; i++) { for (j = 1; j <= i; ++j) { Console.Write(number); ++number; } Console.Write("\n"); } Console.ReadLine(); } 0
Khaja Moizuddin9y agoPosted Dec 11, 2016, 1:56 PMhttp://www.programmingsimplified.com/c-program-examples You can learn all logical programs here.... Thanks and hope THIS helps you0
Amit Kumar Singh9y agoPosted Dec 11, 2016, 12:24 PMhey try this static void Main(string[] args) { int rows, i, j, number = 1; Console.Write("Enter number of rows: "); rows = Convert.ToInt32(Console.ReadLine()); for (i = 1; i <= rows; i++) { for (j = 1; j <= i; ++j) { Console.Write(number); ++number; } Console.Write("\n"); } Console.ReadLine(); } 0
Krishna Rajput SinghPosted Dec 11, 2016, 9:43 AM
SARAT GOUDAPosted Dec 12, 2016, 9:05 AM
SARAT GOUDAPosted Dec 12, 2016, 8:25 AM
Khaja MoizuddinPosted Dec 11, 2016, 1:56 PM
Amit Kumar SinghPosted Dec 11, 2016, 12:24 PM