Back To C++ Basic Index
to calculate 10 % discount on price , price is multiplied with 0.1
//program to input price of an item from user and calculate discount as 10 percent on the price #include
#include
void main() { float price,discount; clrscr(); cout<<"enter price of the item "; cin>>price; discount=0.1*price; cout<<"10 % percent discount is "<