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
Is c call by value?
Can i use “int” data type to store the value 32768? Why?
How do I get a null pointer in my programs?
What is sizeof return in c?
What are the uses of a pointer?
In c programming language, how many parameters can be passed to a function ?
How can type-insensitive macros be created?
Is c# a good language?
Define C in your own Language.
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
Which node is more powerful and can handle local information processing or graphics processing?
Explain which function in c can be used to append a string to another string?
Explain a pre-processor and its advantages.
c language interview questions & answer