Last updated 2 months ago
This quesion is rather easy, just follow the flow output = (input - 5) * 3 - 10.
output = (input - 5) * 3 - 10
#include <stdio.h> int main() { long input; long output; scanf("%ld", &input); output = (input + 5) * 3 - 10; printf("%ld\n", output); }