# data[].attributes.headline
#include #include 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.subject
#include #include 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.body
แทนค่า x=6
แทนค่า y=5

# data[].attributes.body
แทนค่าx=5
แทนค่าy=6

# data[].attributes.body
แทนค่าx -5
แทนค่าy 6

# data[].attributes.body
แทนค่าx 5
แทนค่าy -6

# data[].attributes.body
แทนค่าx -5
แทนค่าy -5

# data[].attributes.body
Base : 40.11
High : 45.12

# data[].attributes.headline
#include#includeint 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.subject
#include#includeint 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
Points 45

# data[].attributes.body
Points 55

# data[].attributes.body
#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
Grabe A
Score 88

# data[].attributes.body
Grade B
Score 77

# data[].attributes.body
Grade C
Score 66

# data[].attributes.body
Grade D
Score 55

# data[].attributes.body
Grade F
Score 44

# data[].attributes.body
#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.headline
#include#includeint 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.subject
#include#includeint 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.headline
#include#includeint 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.subject
#include#includeint 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 75
Weight 65
Weight 55
Weight 45
Weight 35

# data[].attributes.body
กำหนดให้
Height 156
Height 146
Height 135
Height 122
Height 123