Write a program that his output * *** *****



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

Post New Answer

More C Interview Questions

What are local and global variables?

3 Answers  


what is an inline function?

2 Answers   TCS,


How to declare a variable?

0 Answers  


#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300,200,100

1 Answers  


What are the differences between Structures and Arrays?

0 Answers   TCS,






WHAT IS PRE POSSESSORS?

6 Answers   TATA,


1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

3 Answers  


Explain this code. #include <stdio.h> void f1(int *k) { *k = *k + 10; } main ( ){ int i; i = 0; printf (" The value of i before call %d \n", i); f1 (&i); printf (" The value of i after call %d \n", i); }

3 Answers   IBM,


how we can make 3d venturing graphics on outer interface

1 Answers   Microsoft,


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

8 Answers   Aspire,


what does ‘Bus Error’ mean?

1 Answers   ABC,


What is the difference between struct and typedef struct in c?

0 Answers  


Categories