View Code of Problem 69

#include<stdio.h>
#include<cstdlib>
#include<cmath>
#include<iostream>
#include<algorithm>
using namespace std;
typedef long long ll;
int main(){
     float  x;
     scanf("%f", &x);
     if(x<1)  printf("%.0f",x);
     if(x<10&&x>=1)  printf("%.0f",2*x-1);
     if(x>=10) printf("%.0f",3*x-11);
	  return 0;
}

Double click to view unformatted code.


Back to problem 69