-4
#include<stdio.h>
main()
{
int O,i;
float F,VI=0,VF=0;
printf("Valor Inicial:"); scanf("%f",&VI);
printf("Valor Final:"); scanf("%f",&VF);
while (VI!=F)
{
if(VI<=VF)
O=1;
else
O=-1;
for (i=VI;i!=VF+O;i=i+O)
{
printf("\n %d",i);
}
printf("\n#############################");
printf("\nValor Inicial:"); scanf("%f",&VI);
printf("\nValor Final:"); scanf("%f",&VF);
}
}
corrects the indentation of your program...put 4 spaces at the beginning of each line of the program
– zentrunix
And what is the value of variable F? If your variables are float type what do you mean by "when I type F"?
– anonimo
Did any of the answers solve your question? Do you think you can accept one of them? Check out the [tour] how to do this, if you haven’t already. You would help the community by identifying what was the best solution for you. You can accept only one of them. But you can vote on any question or answer you find useful on the entire site (when you have enough score).
– Maniero