คือว่าผมอยากให้ช่วยยกตัวอย่างการเขียนภาษาซีหน่อยครับ
โดยในโปรแกรมจะมีคำสั่ง if,if-else,while.do-while,
อยู่ในการเขียนทั้งหมดหรือว่าไม่ทั้งหมดก็ได้
ประมานว่า
#include<stdio.h>
int score;
main()
{
printf("Press enter your scor:");
scanf("%d",&score);
if((score<=100)&&(score>=80));
printf("Grade 4\n");
else if ((score<80)&&(score>=70));
printf("Grade 3\n");
else if ((score<70)&&(score>=60));
printf("Grade 2\n");
else if ((score<60)&&(score>=50));
printf("Grade 1\n");
else if (score<50)&&(score>=0));
printf("Grade 0\n");
}
แต่ถ้าหากจะใส่ชุดคำสั่งเพิ่มจะแทรกอะไรตรงไหนดี
อยากให้ช่วยเสริมๆหน่อยครับหรือว่ายกใหม่เลยก็ได้