I checked your code in linux machine.so I have changed few lines.

In your code there is no need to two loops.You can do that using a single loop.

Code:
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>

int main(){
  int i,j,T;

  printf("Input T: ");
  scanf("%d",&T);
    for(i=300;i<=950;i+=T)
    {
            j=i+50;
      printf("T1 = %d and T2 = %d\n",i,j);
    }
}
askmewhy25 like this