# data[].attributes.body
#include <stdio.h>
#include <conio.h>
int main()
{
int a,b,c;
printf("Input 1st number : ");
scanf("%d",&a);
printf("Input 2nd number : ");
scanf("%d",&b);
c=a*b;
printf("\n\n\n");
printf("%d x %d = %d",a,b,c);
getch();
return 0;
}

# data[].attributes.headline
อธิบายกระบวนการทำงานของโปรแกรม

# data[].attributes.subject
อธิบายกระบวนการทำงานของโปรแกรม

# data[].attributes.body
#include <stdio.h>
#include <conio.h>
int main() {
int x,y ;
printf("Enter x: ");
scanf("%d",&x);
printf("Enter y: ");
scanf("%d",&y);
printf("Operate of X Y Table\n");
printf("-------------------\n");
printf("x + y = %d\n",x+y);
printf("x - y = %d\n",x-y);
printf("x * y = %d\n",x*y);
printf("x / y = %d\n",x/y);
printf("x Mod y = %d\n",x%y);
getch();
}

# data[].attributes.body
#include <stdio.h>
#include <conio.h>
int main() {
float base1,high1,area;
printf("Enter Base: ");
scanf("%f",&base1);
printf("Enter High: ");
scanf("%f",&high1);
area = 0.5*high1*base1;
printf("Area of Triangle is: %.3f\n",area);
getch();
}

# data[].attributes.body
Code - งานชิ้นที่ 4

#include<stdio.h>
#include<conio.h>
int main()
{
int points;
clrscr;
printf("How many points can you score?: ");
scanf("%d",&points);
if(points>=50){
printf("You have a score of more than 50\n");
printf("pass exam...Congretulations\n");
}
else
{
printf("Fail...Attempt again\n");
}
printf("Bye bye...see you again next semester %d\n",points);
getch();
return(0);
}

# data[].attributes.body
ครั้งที่1 51

# data[].attributes.body
ครั้งที่2 49

# data[].attributes.body
Code - งานชิ้นที่ 5

#include<stdio.h>
#include<conio.h>
int main()
{
float score;
char grade;
printf("Input Your Score : ");
scanf("%f",&score);
if (score>=80)
grade= 'A';
else if (score>=70)
grade='B';
else if (score>=60)
grade='C';
else if (score>=50)
grade='D';
else
grade='F';
printf("Your's Score = %.2f \n",score);
printf("Grade = %c ",grade);
getch();
}

# data[].attributes.body
Code - งานชิ้นที่ 6

#include <stdio.h>
#include <conio.h>
int main()
{
char Grade;
printf("Enter Your Grade : ");
Grade = getchar();
switch (Grade)
{
case 'A' :
printf("Excellent");
break;
case 'B' :
printf("Well!");
break;
case 'C' :
printf("Good!");
break;
case 'D' :
printf("So-so!");
break;
case 'E' :
printf("Badly!");
break;
case 'F' :
printf("Oh God");
break;
default :
printf("Data Error");
}
getch();
}

# data[].attributes.body
Code - งานชิ้นที่ 7

#include<stdio.h>
#include<conio.h>
int main()
{
int i = 1;
float weight,sum = 0;
while (i<=5)
{
printf("Enter weight :");
scanf("%f",&weight);
sum += weight;
i++;
}
printf("sum of weights = %.2f\n",sum);
printf("Average of weights = %.2f\n",sum/5);
getch();
}

# data[].attributes.body
Code - งานชิ้นที่ 8

#include<stdio.h>
#include<conio.h>
int main()
{
int i = 1;
float height,sum = 0;
do
{
printf("Enter Height :");
scanf("%f",&height);
sum += height;
i++;
} while (i<=5);
printf
("Sum of Height = %.2f\n",sum);
printf("Average of Height = %.2f\n",sum/5);
getch();
}

# data[].attributes.body
กำหนดให้
weight : 81.0202
weight : 74.65
weight : 55.1
weight :60.30
weight : 38

# data[].attributes.body
Height : 142.6
Height : 177.30
Height : 190.1289
Height : 150
Height : 134.55