▲by: Hanz Rafael Salibo▲
In this week, Sept. 22-26, 2008, we made an activity. This is my work:
#include
#define p printf
#define s scanf
main()
{float q, w, e, r, t;
clrscr();
p("Enter the first number:");
s("%f",&q);
p("\nEnter the second number:");
s("%f",&w);
p("\nEnter the third number:");
s("%f",&e);
p("\nEnter the fourth number:");
s("%f",&r);
p("\nEnter the fifth number:");
s("%f",&t);
if (q>w && q>e && q>r && q>t)
{p("\n\nThe first number has the highest value");
p("\nIt has a value of %f",q);}
if (w>q && w>e && w>r && w>t)
{p("\n\nThe second number has the highest value");
p("\nIt has a value of %f",w);}
if (e>q && e>w && e>r && e>t)
{p("\n\nThe third number has the highest value");
p("\nIt has a value of %f",e);}
if (r>q && r>w && r>e && r>t)
{p("\n\nThe fourth number has the highest value");
p("\nIt has a value of %f",r);}...
getch();
}
╞▒≡ LEARNINGS OF THE WEEK ▒╞
Posted by hanzoii` :) at 11:30:00 AM 0 comments
♦ LEARNINGS OF THE WEEK ♦
by: ♠ HANZ RAFAEL SALIBO ♠
In this week, I learned how to use the TURBO C. I also learned how to detect my errors in running the program.
Sunday, September 14, 2008
Posted by hanzoii` :) at 9:39:00 AM 0 comments
⌂╤ LEARNINGS OF THE WEEK ╤⌂
by:╞ HANZ RAFAEL SALIBO╞
In this week... I learned how to construct a flowchart. I also learned the commonly used operators in flowcharting.The commonly used arithmetic operators in flowcharting are the following:
+ for addition
- for subtraction
* for multiplication
/ for division
The commonly used relational operators in flowcharting are the following:
= for equa
l> for greater than
< for lesser than
<> for not equal
≥ for greater than or equal to
≤ for lesser than or equal to
The commonly used logical operators are the following:
&& for and
for or
! for not
Friday, September 5, 2008
Posted by hanzoii` :) at 10:03:00 AM 0 comments