answersLogoWhite

0


Best Answer

hi.... char *arr = argv[1];

if (arr!=NULL)

{

int len = strlen(argv[1]);

len--;

arr = argv[1];

while(len>=0)

printf("%c",arr[len--]);

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

#include<stdio.h>

void main()

{

int i,j,sum=0;

for(i=1;i<=3;i++)

{

for(j=0;j<=i-1;j++)

{

sum+=1;

printf("%d",sum);

}

printf("\n");

}

}

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

int main()
{
int i, j, n;
scanf(n);

for(i=1; i <= n; i++)
for(j=1; j <= i; j++)
printf(j);

return 0;
}

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

int main (void) { puts ("1 123 45678 9"); return 0; }

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write program in c to show the pattern 1 23 456?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Will it be acceptable to write R285 456 as R285, 456 in south Africa?

10001/999900


How do you write 4.56 as a percent?

4.56 = 456%


What are the release dates for Attack of the Show - 2005 1-456?

Attack of the Show - 2005 1-456 was released on: USA: 1 March 2007


How do you write 14 over 456 as a decimal?

Approximately 0.03070175438596491228070175438596


How do you write out 456 million?

By adding six zeroes to the end.


How do you write 456 in words?

four hundred fifty-six.


What is 456 54 show work?

456 + 54 = 450 + 6 + 50 + 4 = 450 + 50 + 6 + 4 = 500 + 10 = 510


How do you write 456 ten-thousandths in standard form?

0.0456 is the answer to your question.


How do you show your work for prime factorization number 45?

456


How do you write 456 in expanded notation using the powers of 10?

Expanded Notation of 456 = (4 x 102) + (5 x 101) + (6 x 100)


How do you write the number 45 456 000 000 in number form?

Exactly as you have done in the question.


What is 456 times 1?

456 multiplied by 1 equals 456.