progrem to generate the following series
1
12
123
1234
12345
Answer Posted / shakil ahmed
#include<stdio.h>
#include<conio.h>
main()
{
int i, j;
for(i=1; i<=5; i++)
{
for(j=1; j<=i; j++)
{
printf("%d",j);
}
printf("\n");
}
}
Is This Answer Correct ? | 65 Yes | 16 No |
Post New Answer View All Answers
Can you please explain the difference between exit() and _exit() function?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
Where in memory are my variables stored?
Explain how do you view the path?
What are qualifiers and modifiers c?
Disadvantages of C language.
How is a macro different from a function?
What are dangling pointers? How are dangling pointers different from memory leaks?
Write a program to generate random numbers in c?
Explain what are the different data types in c?
Why pointers are used?
What is line in c preprocessor?
Why c language?
Is array a primitive data type in c?
Explain what is the difference between a string and an array?