Here is my problem I can't figure out how to loop two variable at the same
while they increment at the same time with the same increment
I can't explain myself I will just give an example:

Code:
The increment is 50
T1          T2
300         350
350         400
400         450
450         500
500         550
550         600
600         650
650         700
700         750
750         800
800         850
850         900
900         950
950         1000
Here is my program
Code:
#include <stdio.h>
#include <conio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>

int main(){
  int i,j,T;
  
  printf("Input T: ");
  scanf("%d",&T);
  for(j=300+T;j<=1000;j+=T)
  for(i=300;i<=(1000-T);i+=T){
    printf("T1 = %d and T2 = %d\n",i,j);
    }          
  getche();
}

Last edited by askmewhy25; 5Mar2010 at 12:00..