print pattern
1 1
33 33
555 555
77777777
555 555
33 33
1 1
Answer Posted / 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 |
Post New Answer View All Answers
What are the salient features of c languages?
Is it possible to pass an entire structure to functions?
What is a lookup table in c?
write a program to print largest number of each row of a 2D array
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
write a program fibonacci series and palindrome program in c
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
Are the outer parentheses in return statements really optional?
What are the key features in c programming language?
What are the storage classes in C?
What is difference between structure and union in c?
What is header file definition?
What is advantage of pointer in c?
What is C language ?