Piramid ProgramSGSARAT GOUDA10yAsked Dec 11, 2016, 12:56 AM ESTSolvedShareLinkedInXCopy linkSave12536847910 Print Out put.......
Piramid ProgramSGSARAT GOUDA10yAsked Dec 11, 2016, 12:56 AM ESTSolvedShareLinkedInXCopy linkSave12536847910 Print Out put.......
Krishna Rajput SinghRank #605 · 4K reputation10y agoPosted Dec 11, 2016, 4:43 AM EST✓ Accepted answer-2Hello 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 -2Amit Kumar SinghRank #562 · 4.3K reputation10y agoPosted Dec 11, 2016, 7:24 AM EST0hey 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(); } 0Khaja MoizuddinRank #270 · 9.4K reputation10y agoPosted Dec 11, 2016, 8:56 AM EST0http://www.programmingsimplified.com/c-program-examples You can learn all logical programs here.... Thanks and hope THIS helps you0SGSARAT GOUDA109 reputation10y agoPosted Dec 12, 2016, 3:25 AM EST0thanks.......Bro0SGSARAT GOUDA109 reputation10y agoPosted Dec 12, 2016, 4:05 AM EST0Output not correct Plz Check my question....0Join to answer this questionEvery answer you publish earns 20 SHARP.Create free accountSign inKnow the answer?Answer a question in the forums and earn +20 SHARP for every answer.See unanswered questionsForumsTop experts01Arun PottiAnswers in the forums20answers02Tahir AnsariAnswers in the forums5answers03Kamlesh KumarAnswers in the forums5answers04Sam HobbsAnswers in the forums4answers05Željko PerićAnswers in the forums3answers?YouYour name goes here.Every answer: 20 SHARP.JoinFull leaderboard →2026DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit Kumar SinghRank #562 · 4.3K reputation10y agoPosted Dec 11, 2016, 7:24 AM EST0hey 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 MoizuddinRank #270 · 9.4K reputation10y agoPosted Dec 11, 2016, 8:56 AM EST0http://www.programmingsimplified.com/c-program-examples You can learn all logical programs here.... Thanks and hope THIS helps you0
SGSARAT GOUDA109 reputation10y agoPosted Dec 12, 2016, 4:05 AM EST0Output not correct Plz Check my question....0
Krishna Rajput SinghRank #605 · 4K reputationPosted Dec 11, 2016, 4:43 AM EST
Amit Kumar SinghRank #562 · 4.3K reputationPosted Dec 11, 2016, 7:24 AM EST
Khaja MoizuddinRank #270 · 9.4K reputationPosted Dec 11, 2016, 8:56 AM EST
SARAT GOUDA109 reputationPosted Dec 12, 2016, 3:25 AM EST
SARAT GOUDA109 reputationPosted Dec 12, 2016, 4:05 AM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts