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 |
How can I remove the trailing spaces from a string?
How can you determine the size of an allocated portion of memory?
what is the structure?
What is static memory allocation? Explain
void main() { int i=5; printf("%d",i+++++i); }
Write a C Programm.. we press 'a' , it shows the albhabetical number is 1, if we press 'g' it shows the answer 7.. any can help me
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
How many levels of indirection in pointers can you have in a single declaration?
0 Answers Agilent, ZS Associates,
How to define structures? ·
can we have joblib in a proc ?
Consider a language that does not have arrays but does have stacks as a data type.and PUSH POP..are all defined .Show how a one dimensional array can be implemented by using two stacks.
What are logical errors and how does it differ from syntax errors?