NEW or OLD in C Programming

Image result for c programming

NEW or OLD in C Programming
Code:
  #include<stdio.h>
int main(){
  int y1,y2;
  printf("Enter the year of establishment of college 1\n");
  scanf("%d",&y1);
  printf("Enter the year of establishment of college 2\n");
  scanf("%d",&y2);
  if (y1>y2)
    printf("College 2 is older");
  else
    printf("College 1 is older");
  return 0;
}
  

No comments