3.27.2017

Spiral Continuous two digit number pattern C Program

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.

Process of Spiral Continuous two digit number pattern C Program
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);