Ciclos con limites de variables - YezaelOtamendi/Programamcion-en-C GitHub Wiki
#include <stdio.h>
int main (void)
{
int A, B;
int T=0;
printf("Incerte el valor de A: \n");
scanf("%d", &A);
printf("Incerte el valor de B: \n");
scanf("%d", &B);
while (A<B){
printf("A = %d\n",A);
A++;
T=T+A;
}
while (A>B){
printf("B = %d\n",B);
B++;
T=T+B;
}
printf("Sumatoria total = %d",T);
return 0;
}