#include <stdio.h> int main(void) { int x, result; printf("Please input a number:\n"); scanf("%d", &x); if (x<1) { result=x; } else if (x<10) { result=2*x-1; } else { result=3*x-11; } printf("The result is: %d", result); return 0; }