Q. Write a C program to make a Spiral tow digit number pattern as :
1 2
4 3
5 6
8 7
9 10
12 11
Ans.
/*spiral continuous tow digit number pattern C program source code*/
#include<stdio.h>
int main()
{
int num,r,c,p,q,x=1;
printf("Enter No. Of Rows : ");
scanf("%d", &num);
1 2
4 3
5 6
8 7
9 10
12 11
Ans.
Figure: Spiral Continuous two digit number pattern C Program |
/*spiral continuous tow digit number pattern C program source code*/
#include<stdio.h>
int main()
{
int num,r,c,p,q,x=1;
printf("Enter No. Of Rows : ");
scanf("%d", &num);