Code:
#include <stdio.h>

int main(){
    float T1,T2,end1,increment;
    printf("first variable=");
    scanf("%f",&T1);
    printf("second variable=");
    scanf("%f",&T2);
    printf("increment for first and second variable=");
    scanf("%f",&increment);
    printf("end when first variable is>=");
    scanf("%f",&end1);
    printf("The increment is %f",increment);
        printf("\n     T1              T2\n");
    while(T1<end1){
        T1+=increment;
        T2+=increment;
        printf("%10.3f      %10.3f\n",T1,T2);
    }
    getchar(); getchar();
}
with this code you can have T1,T2 and increment as demical numbers

Last edited by virxen; 5Mar2010 at 13:30..
askmewhy25 like this