Importance of Naming Variables and Functions6 months ago

Consider the program below. Can you guess what the program is trying to do? Also note the amount of time you take to figure it out.

#include<stdio.h>
int main()
{
int q,f,e,u,z;
scanf("%d%d%d",&q,&f,&u);
e=f-q;
z=u-2;
while(z-- > 0){
f = f+e;
}
printf("%d",f);
}

If you took more than 10 seconds to decipher the program and you too write similar code with single letter variable names, then it is time you realize the importance of providing meaningful names to variables and functions. (If the naming convention was better where meaningful names were given to the variables, it would have been easier for one to understand the functionality of the code easily.)