write a program in c to print ****
* *
* *
****
Answer / rajkumar
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
for(i=0;i<=3;i++)
{
printf("*");
}
for(i=4;i<5;i++)
{
printf(" ");
}
for(i=5;i<6;i++)
{
printf("*");
}
for(i=6;i<7;i++)
{
printf(" ");
}
for(i=7;i<8;i++)
{
printf("*");
}
for(i=8;i<9;i++)
{
printf(" ");
}
for(i=9;i<10;i++)
{
printf("*");
}
for(i=10;i<11;i++)
{
printf(" ");
}
for(i=11;i<12;i++)
{
printf("*");
}
for(i=12;i<13;i++)
{
printf(" ");
}
for(i=12;i<=15;i++)
{
printf("*");
}
getch();
}
| Is This Answer Correct ? | 2 Yes | 5 No |
If fflush wont work, what can I use to flush input?
write a C program : To find out the number of identical words in two files . the file name should be taken as command line argument .
what r the cpu registers r ther?
What math functions are available for integers? For floating point?
Find if a number is power of two or not?
write a c programs to do multiplication of two numbers with out using arithmatic operator ??????????
Is it possible to run using programming C for Java Application?
What is function what are the types of function?
Write a program to generate the first n terms in the series --- 9,11,20,31,...,82
Explain the red-black trees?
find largest of 3 no
how to implement stack operation using singly linked list