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 |
What is the difference between ++a and a++?
what are the facialities provided by you after the selection of the student.
how to find string length wihtout using c function?
What is the use of clrscr?
Find greatest of two numbers using macro
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
In header files whether functions are declared or defined?
what is the return value (status code) of exit() function.... what the arguments(integer value) passed to it means....
Write a program for deleting duplicate elements in an array
Tell me what are bitwise shift operators?
WAP to accept rollno,course name & marks of a student & display grade if total marks is above 200?
What is an example of structure?