WAP to print a pattern like "1 23 345 4567 56789..."


/*C program to print a pattern"1 23 345 4567 56789..."*/
#include<stdio.h>
#include<conio.h>
void main()
{
int rows,i,j,k=0;
printf("Enter number of rows: ");
scanf("%d",&rows);
for(i=1;i<=rows;i++)
{
for(j=1;j<=i;++j)
printf("%d ",k+j);
++k;
printf("\n");
}
getch();
}
Expected Output:
Enter number of rows: 5
1
23
345
4567
56789

2 Comments

  1. Do you come across unexpected issues while sending digital currency to another wallet in Binance? For the smooth and hassle-free sending of digital currency, you should contact the experts who can explain the complete process of sending the currency in a detailed manner so that you can cut the errors that are unwanted and face no hurdles.Just dial Binance support phone number and speak to the team for advantageous assistance and support.

    ReplyDelete
  2. Unable to withdraw funds in Binance
    Are you facing error while withdrawing funds in Binance account? Such errors need professional assistance and should be treated with extra precaution. To deal with abrupt Binance errors, users are advised to speak to the team of well-adroit executives who have gotten the accurate strategies and means to resolve the error immediately. What are you waiting for, why not you grab your phone and dial Binance support number to erase all the complexities in one shot. You know what, you don’t have to pay a single penny to attain their seamless services

    ReplyDelete
Previous Post Next Post