Write a program that his output * *** *****
Answer / srujitha
int main()
{
int n = 5;
for( int i = 0; i <= n; i = i + 2)
{
for( int j = 0; j<=i;j++)
{
printf("*");
}
printf(" ");
}
Is This Answer Correct ? | 3 Yes | 0 No |
Why doesn't the code "a[i] = i++;" work?
What is the basic structure of c?
Write a program to show the change in position of a cursor using c
We can draw a box in cprogram by using only one printf();& without using graphic.h header file?
How does #define work?
What is the output of the following program #include<stdio.h> main() { int i=0; fork(); printf("%d",i++); fork(); printf("%d",i++); fork(); wait(); }
Can we declare a function inside a function in c?
Write a c program for sum of first n terms of the series S = 1 - (1/3) + (1/5) -(1/7) + (1/9) ......
In C language, a variable name cannot contain?
Write a code to generate divisors of an integer?
a memory of 20 bytes is allocated to a string declared as char *s then the following two statements are executed: s="Etrance" l=strlen(s); what is the value of l ? a.20 b.8 c.9 d.21
What are the difference between a free-standing and a hosted environment?