Return
Styles:
Pseud0ch
,
Terminal
,
Valhalla
,
NES
,
Geocities
,
Blue Moon
.
Entire thread
/prog/ Challenge [Very Easy]
1
Name:
Anonymous
2008-04-25 14:49
Create a program that gives this as its output:
http://pastebin.ca/997618
40
Name:
Anonymous
2008-05-02 5:24
#include <stdio.h>
#include <conio.h>
int main()
{
char alpha[26] = {'A','B','C','D','E',
'F','G','H','I','J',
'K','L','M','N','O',
'P','Q','R','S','T',
'U','V','W','X','Y','Z'};
char buyavowel[5] = {'A','E','I','O','U'};
int i,x;
for(i = 0;i < 26; i++)
{
for(x = 0; x < 5; x++)
{
printf("\n%c%c%c%c",alpha
[i]
,buyavowel[x],
buyavowel[x],alpha
[i]
);
}
}
getch();
return 0;
}
I'm sure there is a more efficient way to do it, It's also 5:25 in the AM. getch(); is a way to show the output, because for some reason with the compiler I use doesn't do that automatically. Anyway...do I win?
Newer Posts
Don't change these.
Name:
Email:
Entire Thread
Thread List