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 are the different types of control structures?
What's the difference between constant char *p and char * constant p?
Explain what is wrong with this statement? Myname = ?robin?;
Why c language is called c?
How are structure passing and returning implemented?
How can I remove the trailing spaces from a string?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
What is the use of #define preprocessor in c?
What is the use of bitwise operator?
Explain what is #line used for?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
For what purpose null pointer used?
Explain built-in function?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
Define the scope of static variables.