▼ กำลังโหลดข้อมูล... ▼
แสดงความคิดเห็น
คุณสามารถแสดงความคิดเห็นกับกระทู้นี้ได้ด้วยการเข้าสู่ระบบ
กระทู้ที่คุณอาจสนใจ
อยากรู้ว่าเขียนแสดงสูตรคูณแบบรอบต้องใช้คำสั่งยังไงคะ โปรแกรมภาษาซี
#include<stdio.h>
void main()
{
int m;
int i=1;
printf("INPUT M = ");
scanf("%d",&m);
for(i=1;i<=12; i++)
printf("%d×%d=%d\n",m,i,m
สมาชิกหมายเลข 7337524
เขียนภาษา c ทำไมไม่ปัดเศษ
int main()
{
float a,b,c;
printf(" *** Find (Min + Mid) / Max ***\n");
printf("Enter 3 integers : ");
scanf("%f%f%f",&a,&b,&c);
&n
สมาชิกหมายเลข 7189051
ถ้าเปลี่ยนผลลัพธ์ต้องแก้ไขอะไรเพิ่มบ้างครับ
ถ้าอยากเปล่ยนจาก
1 1
1 1
1 1
1 1
1
ไปเป็น
12
สมาชิกหมายเลข 7200995
อยากทำวนหลูบ กับระบบทอนเงินทำอย่างไร?
#include <stdio.h>
#include <conio.h>
void main(){
int movie,Day,Time,seat,price,ticket,name,email;
float total;
printf("MOVIES COMINGSOON \n");
printf(&q
สมาชิกหมายเลข 7121313
ช่วยดูโค้ดให้หน่อยครับภาษา C ผมต้องการให้การสุ่ม ผลลัพธ์จะต้องออกมาไม่ซำ้กันอ่ะครับ
#include <stdio.h>
#include<stdlib.h>
#include <string.h>
int main()
{
int x[30];
int i,b;
int r,p;
char name[11][20] = {"Umbrella","Pillow blanket","Neck pillow","Towels","Temperature glass","Cloth bag","Multipurpose bag","Slippers","Portable fan","Rice box"};
for(i = 0;i < 30;++i)
{
printf("Enter your student ID (%d/30): ", i+1);
scanf("%d", &x);
if(x == 0 && i < 15)
{
if ( x == 0 )
{
printf("Please enter your ID again\n");
printf("Enter your student ID (%d/30): ", i+1);
scanf("%d", &x);
}
}
else if(x == 0 && i >= 15)
{
break;
}
}
srand(time(NULL));
for (b = 0 ; b < 10;++b)
{
r = rand()%i;
p = rand()+1;
printf("Winner is Number %d student ID %d prize is %d %s\n",r+1,x[r],p,name[p-1]);
}
return 0;
}