#10022: 怎改ㄚ...新手求救


pesos13562 (尋找我的妹妹吧!)

School : 國立東華大學
ID : 49541
IP address : [27.52.37.85]
Last Login :
2019-04-02 22:31:59
c002. 10696 - f91 -- UVa10696 | From: [114.27.219.144] | Post Date : 2015-07-09 21:15


#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int f91(int n);
int main()
{
int n;
scanf("%d",&n);
printf("f91(%n)=%d",f91(n));

return 0;
}
int f91(int n)
{
    if(n>=101)
  {return n-10;}
  else if(n<=100)  
{return n-n+91;
       }
     
    }

 
#13049: Re:怎改ㄚ...新手求救


timmy940410 (♂千羽▄︻┻═┳一)

School : 臺北市私立延平高級中學
ID : 69053
IP address : [114.43.136.42]
Last Login :
2019-05-08 17:25:46
c002. 10696 - f91 -- UVa10696 | From: [114.32.213.13] | Post Date : 2017-11-25 16:18

 
#include
#include
#include
#include
int f91(int n);
int main()
{
int n;
scanf("%d",&n);
printf("f91(%n)=%d",f91(n));
 
return 0;
}
int f91(int n)
{
    if(n>=101)
  {return n-10;}
  else if(n<=100)  
{return n-n+91;
       }
     
    }
 

/*這是C++*/
#include<iostream>
using namespace std; int main() { int x; while(cin >> x){ if(x==0){ return 0; } int f91; if(x<=100){ cout << "f91"<<"("<< x <<")"<<" = "<< "91" << endl; }else if(x>=101){ f91=x-10; cout << "f91""("<< x <<")"" = "<< f91 << endl; } } }



 
ZeroJudge Forum