Print Latin Square

/* Write a program to Print Latin Square */

#include<stdio.h>
#include<conio.h>
void main()
{
int x, y, n, z;
printf("\n Enter range of LATIN Square ");
scanf("%d",&n);
for(x = 1;x<=n;x++)
{
  z = x ;
  printf("\n");
  for(y=1;y<=n;y++)
  {
    printf("\t%d",z);
    if(z == n)
    {
     z = 1 ;
    }
    else
    {
    z++ ;
    }
  }
}
getch();

}


 

Who's online

We have 8 guests and no members online

About Us

Harsimran Singh

Hello

This website is a special gift for Programming Lovers , which want to learn basic Programming Languages and want to develop there skills Read More....

Our work

Find Us

This email address is being protected from spambots. You need JavaScript enabled to view it.

Harsimran Singh(Facebook)

Harsimran Singh(about.me)

Harsimran Singh(G+)