728x90 AdSpace

Latest Article



Amount of Purchase Discount pay Program in C C++ Language Code Example




Amount of Purchase Discount pay Program in C C++ Programming Language Example  code Online using condition and if else



#include<stdio.h>
#include<conio.h>
void main(){
float num;
float pay;
clrscr();
printf ("Enter The Amount of Purchase");
scanf("%f",&num);
if(num<5000)
printf("No Discount Offer,Pay amount of %f",num);
else {
printf("20% Discount offer");
pay=num-(num*0.20);
printf("Pleae pay the amount of %f",pay);
}
getch();
}

no image
  • Title : Amount of Purchase Discount pay Program in C C++ Language Code Example
  • Posted by :
  • Date : 07:35
  • Labels :






  • Blogger Comments
  • Facebook Comments

0 comments:

Post a Comment