Skip to content

Instantly share code, notes, and snippets.

@Guifgr
Last active December 1, 2018 16:25
Show Gist options
  • Save Guifgr/fca3dac9637e014eeea88bb242da8393 to your computer and use it in GitHub Desktop.
Save Guifgr/fca3dac9637e014eeea88bb242da8393 to your computer and use it in GitHub Desktop.
Plano cartesiano de palavras created by Guifgr - https://repl.it/@Guifgr/Plano-cartesiano-de-palavras
#include <stdio.h>
int main()
{
int i,j;
char p[28][2] = {"AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO"};
for(i=0;i<27;i++){
for(j=0;j<27;j++){
printf(" (%.2s,%.2s),",p[j],p[i]);
}
}
return 0;
}
@Guifgr
Copy link
Author

Guifgr commented Dec 1, 2018

Cartesian product of words in C language

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment