UVA 12461 Solution
Solve in C:
#include<stdio.h>
int main(){
int n;
while(scanf("%d",&n)!=EOF)
{
if(n==0)
break;
else
printf("1/2\n");
}
return 0;
}
#include<stdio.h>
int main(){
int n;
while(scanf("%d",&n)!=EOF)
{
if(n==0)
break;
else
printf("1/2\n");
}
return 0;
}
No comments