C
Programming and Technical
Programming
Program
4 4 4 4 4 4 4
4 3 3 3 3 3 4
4 3 2 2 2 3 4
4 3 2 1 2 3 4
4 3 2 2 2 3 4
4 3 3 3 3 3 4
4 4 4 4 4 4 4
Read Solution (Total 5)
-
- #include
int main()
{
int n,i,j,k;
printf("enter number nn");
scanf("%d",&n);
for(i=1;i - 6 years agoHelpfull: Yes(7) No(21)
- #include
void main()
{
int i,j,k,n;
printf("enter n");
scanf("%d",&n);
for(i=1;i - 6 years agoHelpfull: Yes(0) No(9)
- #include
int main()
{
int n=4,a;
a=n*2-1;
for(int i=0;i - 5 years agoHelpfull: Yes(0) No(2)
- Get the solution at:
https://drive.google.com/file/d/16FkcQr9TM1IHx52uhHEOYdp6iIxzwIve/view?usp=drivesdk - 5 years agoHelpfull: Yes(0) No(0)
- // Function to print the pattern
void printPattern(int n)
{
int arraySize = n * 2 - 1;
int result[arraySize][arraySize];
// Fill the values
for(int i = 0; i < arraySize; i++)
{
for(int j = 0; j < arraySize; j++)
{
if(abs(i - arraySize / 2) > abs(j - arraySize / 2))
result[i][j] = abs(i - arraySize / 2) + 1;
else
result[i][j] = (abs(j-arraySize / 2) + 1);
}
}
// Print the array
for(int i = 0; i < arraySize; i++)
{
for(int j = 0; j < arraySize; j++)
{
cout - 5 years agoHelpfull: Yes(0) No(0)
C Other Question
main()
{
int a[3][4]={(5,7,5,9),(4,6,3,1),(2,9,0,6)};
int *p;
int (*q)[4];
p=(int *)a;
q=a;
printf("n%u%u",p,q);
p++;
q++;
printf("n%u%u",p,q);
}
ex:apple
op:other characters wat u give