12345
1234
123
12
1
Answers were Sorted based on User's Feedback
Answer / malik
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
for(i=5;i>=0;i--)
{
for(j=1;j<=i;j++)
{
printf("%d", j);
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / prachi
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d", i);
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 2 Yes | 3 No |
Write a program to remove the C comments(/* */) and C++ comments(//) from a file. The file should be declared in command line.
How to write a multi-statement macro?
can i know the source code for reversing a linked list with out using a temporary variable?
What does c mean before a date?
Why do we use int main?
How can I find out how much free space is available on disk?
What is sizeof int in c?
Write a C program to fill a rectangle using window scrolling
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
write a function that accepts an array A with n elements and array B with n-1 elements. Find the missing one in array B,with an optimized manner?
how should functions be apportioned among source files?