▼ กำลังโหลดข้อมูล... ▼
แสดงความคิดเห็น
คุณสามารถแสดงความคิดเห็นกับกระทู้นี้ได้ด้วยการเข้าสู่ระบบ
กระทู้ที่คุณอาจสนใจ
อยากรู้ว่าทำไม avg=0.00 ครับ ใบงาน ปวช.1 ครับ
#include<stdio.h>
#include<conio.h>//ฟังชั่นหลัก
void main ()
{
float avg;//ประกาศตัวแปล
int stu
สมาชิกหมายเลข 4734369
ภาษาซี c++ การหาอุณหภูมิ
#include <stdio.h>
#include <conio.h>
void main()
{
char name;
int temp,i,min,max;
float suml=0,sumh=0;
printf("Enter your name : &qu
สมาชิกหมายเลข 6884581
เติมสกอร์โรเเกรมยังไงคะ
ถ้าเราอยากเติมสกอร์นับเเต้มด้วยควรทำยังไงคะ
#include<stdio.h>
#include<conio.h>
#include<time.h>
#include<stdlib.h>
main()
{
int a=0,com=0;
สมาชิกหมายเลข 5267783
C Language Function
อยากเปลี่ยนโค้ดนี้ให้มี Function เรียก, ส่ง, คืน เเต่ลองทําเเล้วสมองตันมากไม่เข้าใจช่วยผมที
#include<stdio.h>
int main()
{
int a,b,c,i,j,k=0,y,z;
printf("กรุณาใส่จำน
สมาชิกหมายเลข 6624555
อ่านกระทู้อื่นที่พูดคุยเกี่ยวกับ
วิศวกรรมคอมพิวเตอร์
C++
C#
การพัฒนาซอฟต์แวร์
การพัฒนา Desktop Application
ช่วยแก้ปัญหาการเขียนโค้ทc++หน่อยค่ะ
#include
int main(){
int i=0,sum=0;
int n,score,average,max,min;
printf("How Many Student = ");
scanf("%d",&n);
while(i<=n){
printf("Enter Your Score Student : ");
scanf("%d",&score);
if(i==0)
{
max = score;
min = score;
}
else
{
if(score>max) max = score;
if(score<min) min = score;
}
sum=sum+score;
i=i+1;
}
if (i!=0)
{
printf("Maximum score = %d\n",max);
printf("Minimum score = %d\n",min);
printf("Average score = %f\n",(float)sum/(float)i);
}
return 0;
}