print pattern
1 1
33 33
555 555
77777777
555 555
33 33
1 1
Answer / kiran kumar
#include<stdio.h>
main()
{
int i,j,space=6,val=1;
for(i=0;i<4;i++)
{
for(j=0;j<=i;j++)
printf("%d",val);
for(j=0;j<space;J++)
printf(" ");
for(j=0;j<=i;j++)
printf("%d",val);
space-=2;
val+=2;
}
repeat code once again;
space+=2;
val-=2
}
| Is This Answer Correct ? | 2 Yes | 5 No |
struct node { int *a; char *b; char array[12]; }; struct node m,*n; assign the value in *a,*b,char array[12]
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is p in text message?
Under what circumstances does a name clash occur?
what will be the output of this program........ main() { int a=2,b=4,c=6; printf("%d"); } why it gives the value of third variable.
print 1-50 with two loop & two print Statement
Which function in C can be used to append a string to another string?
without using control structures and control structures find the max and min of given 2 nos
Why void is used in c?
how many times of error occur in C
What are two dimensional arrays alternatively called as?