pre-paid card system

d card system

#include"stdio.h"

#include"conio.h"

int main(void)


{


int n,pcn=12345;


printf("Enter your pre-paid card number : ");


scanf("%d",&n);


if(n==pcn)


{


printf("your balance is : 300 BDT\n\n");


}


else if(n!=pcn)


{


printf("Enter your pre-paid card number Again : ");


scanf("%d",&n);
if(n==pcn)
{
printf("your balance is : 300 BDT\n\n");


}


if(n!=pcn)


{
printf("Enter your pre-paid card number Again : ");


scanf("%d",&n);
if(n==pcn)
{
printf("your balance is : 300 BDT\n\n");


}


else
{
printf("\nyour card number is invalid!!!!\n\nYou can insert card number After 6 Hours\n\n");


}


}


}


return 0;


}




No comments:

Post a Comment

There was an error in this gadget

Followers

About Me

Dhaka, Dhaka, Bangladesh
..