Answer Posted / sarvesh
#include<stdio.h>
#include<conio.h>
main()
{
int i,n,j;
int m=1;
clrscr();
printf("enter number");
scanf("%d",&n);
for(i=0;i<n;i++)
{
for(j=0;j<=i;j++)
{
printf("%d",m++);
}
printf("\n");
}getch();
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is scope and lifetime of a variable in c?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
What is a stream?
What is volatile variable how do you declare it?
What is auto keyword in c?
Write a program to check prime number in c programming?
How pointers are declared?
How to declare a variable?
Explain how do you list a file’s date and time?
What is c definition?
What would be an example of a structure analogous to structure c?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
What is variable initialization and why is it important?
What is the use of structure padding in c?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none