Friday, October 31, 2014

To find wheather the girl you love will be girlfriend or not using C

#include<stdio.h>

int main ( )

{

  char rply;

  printf("Propose the girl you love: \n");

  printf("enter the answer ( y for yes and n for no):");

  scanf("%c",& rply);

  if(rply=='y')

    printf("She is your girlfriend now");

  if(rply=='n')
   {
    printf("She is not your girlfriend \n");
    printf("Keep trying");
   }
 return 0;

}




0 comments:

Post a Comment