728x90 AdSpace

Latest Article



Discount Program in C C++ Example Code Conditional Quiz Assignment





 #include<stdio.h>
 #include<conio.h>
 void main()
 {

    float n1,n2;
    clrscr();
  printf("enter value");
  scanf("%f", &n1);
  if(n1>=5000)
  {
    n2=(n1*15)/100;
    printf("discount allowed=%f",n2);
    printf("total price=%f",n1-n2);
   }
  else printf("no discount");
  getch();
  }

no image
  • Title : Discount Program in C C++ Example Code Conditional Quiz Assignment
  • Posted by :
  • Date : 03:58
  • Labels :






  • Blogger Comments
  • Facebook Comments

0 comments:

Post a Comment