skip to main |
skip to sidebar
hbaluyos_semi_1.c
#include
#define SIZE 3
int getInput();
int computeSum(int []);
void printSum(int);
int main(void)
{
int value[SIZE],sum;
sum = getInput(value);
computeSum(value);
printSum(computeSum(value));
return 0;
}
int getInput(int value[])
{
int i;
printf("Enter three integers: ");
for (i = 0; i < SIZE; i++)
{
scanf("%d", &value[i]);
}
return value[SIZE];
}
int computeSum(int value1[])
{
int sum = 0, j;
for (j = 0; j <= SIZE - 1; j++)
{
sum += value[j];
}
return sum;
}
void printSum(int sum)
{
printf("The sum of the integers is %d", sum);
}
hbaluyos_semi_2.c
#include
#define SIZE 10
int getInput(int []);
void printResult(int []);
int main(void)
{
int n[SIZE], values;
values = getInput(n);
printResult(n);
return 0;
}
int getInput( int n[])
{
int h;
printf("Enter 10 numbers ranging from 1-40: ");
for (h = 0; h < SIZE; h++)
{
scanf("%d", &n[h]);
}
return n[SIZE];
}
void printResult( int n1[])
{
int i, j;
printf("%s%13s%17s", "Element", "Value", "Histogram");
for (i = 0; i < SIZE; i++)
{
printf("%7d%13d ",i,n1[i]);
for (j = 0; j < n1[i];j++)
{
printf("%c",'*');
}
printf("\n");
}
}
hbaluyos_semi_3.c
#include
#define SIZE 11
int getInput();
void printResult(int []);
int main(void)
{
int a[SIZE], value;
value = getInput(a);
printResult(a);
return 0;
}
int getInput(int a[])
{
int j;
printf("Enter the numbers 0 to 10: ");
for (j = 0; j < SIZE; j++)
{
scanf("%d", &a[j]);
}
return a[SIZE];
}
void printResult(int a[])
{
int sum = 0, i;
for (i = 1; i < SIZE - 1; i++)
{
sum += a[i];
}
printf("The sum of all odd integers from 0 to 10 is %d\n", sum);
}
It was on the 28th of August when I first met with the otakus at 246 CafĂ©. We were all invited at Mitsuki’s huge house to celebrate her 21st birthday. I had so much fun..!
And here’s my say about the Otakus I met that day:
michiru – the first girl I approached at 246 to confirm if she’s an otaku. I felt so comfortable talking with her. And she was speaking often in Japanese (many of those words I can barely understand). She’s a junior ComSci student.
kunoichi_hime – she’s a tall girl! And she knows how to read and write in Japanese… I was completely amazed when I found out that she was the one who wrote those characters on in the dedication card of her present for mitsuki.
furtive – I found him an amusing person. I like the way he tells stories or describes because he makes your imagination run. He’s like my classmate in high school. And he’s also a junior ComSci student.
arvin – just after I approached michiru, arvin were into chatting. Arvin knew what I felt just before I was acquainted with the other otakus. Haha! *ulaw keo* Arvin is a batchmate of Labe (my brother) who graduated ealier than him.
yume – the first thing I noticed in yume was her contact lens. She probably doesn’t know I’m wearing contact lenses too. I also feel comfortable talking with yume and she’s smiles a lot.
pinkchocobo – “chinita.” Yeah, she is, indeed, chinita. She was Labe’s high school classmate.
togechikku – the boyfriend of pinkchocobo. Hehe! He’s a ComSci student at CU.
Vi Veri Veniversum Vivus Vicci – his name’s kristof. He draws really good (according to them though I haven’t seen his work yet). Always xa gkabullshit atong nagdula mi ug bullshit na game. Ahahahaha! (Actually halos kami man tanan cge gkabullshit except ni furtive ug vampy)
Sham3oNyOu – I was his work. His drawings were super amazing!
Champoyradoo – fellow freshmen ComSci!! Unfortunately, he’s belongs in Block F. I’m in block B.
Zangy – best friend of Armand – is also a friend of mine.
Mitsuki – the birthday girl. She has this really huge house..! She’s a fresh graduate from La Salle and Joseph Yeo (my preken crush) was once his classmate!! I’m jealous…
Vampy – has this long hair. He’s kinda quiet but he’s outgoing. During out game of bullshit, he’s playing wisely.
SwanKnight – more of the loner, I think. That time, he loves sitting at the sofa listening to his mp3. Well, I know a thing about him; he knows how to COOK (unlike me).