Answer Posted / nayan soni
#include <stdio.h>
#include <conio.h>
void main()
{
int count = 1;
for(int i = 1;i <= 3;i++)
{
for(int j = 1;j <= i;j++)
{
printf("%d ", count);
count++;
}
printf("\n");
}
getch();
}
It works perfectly.. Tested by running the program..
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
The difference between printf and fprintf is ?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
How do we make a global variable accessible across files? Explain the extern keyword?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
Is swift based on c?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
Why do we use int main instead of void main in c?
What is the scope of an external variable in c?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
Which driver is a pure java driver
What do you mean by c what are the main characteristics of c language?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
What does the format %10.2 mean when included in a printf statement?
What is a constant and types of constants in c?