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 |
Is using exit() the same as using return?
Why c is called procedure oriented language?
What does the error message "DGROUP exceeds 64K" mean?
is assignment operator is arithmatic or not
Write a c program to read a positive number and display it in words.? ex: 123=one two three help me....
What is dynamic dispatch in c++?
Why are all header files not declared in every c program?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
What is pragma c?
What is a far pointer in c?
How can we open a file in Binary mode and Text mode?what is the difference?
program for following output using for loop? 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5