Input any no. and print all the the numbers that comes
before it like this
for e.g input = 4
0
01
012
0123
01234
plz answer it 2day
Answer Posted / abc
void main()
{
int n,i,j;
printf("enter the number");
scanf("%d",&n);
for(i=0;i<=n;i++)
{
for(j=0;j<=i;j++)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
writ a program to compare using strcmp VIVA and viva with its output.
What is extern variable in c with example?
Explain about C function prototype?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
What is sorting in c plus plus?
How to declare a variable?
What are the types of bitwise operator?
What is volatile c?
Why is it usually a bad idea to use gets()? Suggest a workaround.
Is register a keyword in c?
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
What library is sizeof in c?
hi any body pls give me company name interview conduct "c" language only
What is wrong with this initialization?
Difference between MAC vs. IP Addressing