Answer Posted / karthickumar
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();
for(i=1;i<=6;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("\n");
}
getch()
}
Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
Explain the difference between getch() and getche() in c?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
What is volatile variable in c?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
how do you execute a c program in unix.
How can I run c program?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
What is wrong with this code?
What is the best style for code layout in c?
What type is sizeof?
What does static variable mean in c?
What are the __date__ and __time__ preprocessor commands?
What is volatile keyword in c?
explain what is an endless loop?
Subtract Two Number Without Using Subtraction Operator