- 19/5/04
- 6,457
- 3,603
đồng cảnh ngộ3 năm học chuyên Tin thầy giáo nhất quyết ko cho chúng mày 10, năm nào cũng chỉ 9.5

Đổ Máu thầy VVThỏa

Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
đồng cảnh ngộ3 năm học chuyên Tin thầy giáo nhất quyết ko cho chúng mày 10, năm nào cũng chỉ 9.5




đồng cảnh ngộ
Đổ Máu thầy VVThỏa![]()
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
void main()
{
clrscr();
struct Diemtin
{
char tenhs[20];
int mahs;
float diemtk;
}dshs[10];
int n,i;
char s[80];
printf("\n Nhap vao so hs: ");
scanf("%d",&n);
while(!(n<=0||n>10))
for(i=0;i<n;i++)
{
printf("\n Ten hoc sinh thu %d: ",i+1);
fflush(stdin);gets(dshs.tenhs);
printf("\n Ma hoc sinh thu %d: ",i+1);
gets(s);dshs.mahs=atoi(s);
printf("\n Diem tong ket hoc sinh thu %d: ",i+1);
gets(s);dshs.diemtk=atof(s);
}
getch();
}
trình bày gì mà rối vậy bạn
trên cái for sao lại có cái while kìa
bỏ cái while đó đi

#include <stdio.h>
#include <conio.h>
main()
{
int a,n,i;
a=3;
n=7;
tt : printf ("\n vong lap vo han");
for (i=0;i<n;i++)
if (i=a)
goto tt;
getch();
}
#include <stdio.h>
#include <conio.h>
main()
{
int a,n,i;
a=3;
n=7;
tt :
printf ("\n hello");
goto xx;
for (i=0;i<n;i++)
if (i=a)
goto tt;
xx: getch();
}
bảo là 1 thằng sinh viên ĐH CN nó bảo thế

The Go To statement considered harmful
printf ("nhập vào số N cần xét");
scanf ("%d",&n);
.......
.......
.......
printf ("bạn có muốn xét tiếp ko ");
// người chạy chương trình nói có