| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
怎么才能跳出循环/????#include<stdio.h>
int n,i,j,s,t,b=1;
void main(){
scanf("%d",&n);
for(i=2;b!=0;i++){
for(j=1;b!=0,j<i;j++){
for(t=1;t<i;t++){
if(t+j==i) s++;
if(s==n)
{printf("TERM %d IS %d/%d\n",n,j,t);b=0;break;}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator