Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  borland c++
Language: C/C++
Code:
#include <iostream.h>

main () {

int compra;

float descuento,resultado;

descuento=0;

compra=0;

cout<<"ingrese compra\n";

cin>>compra;

descuento= (compra*5)/100;

resultado=compra-descuento;

cout<<resultado;

cin>>compra;

return (0);}

Comments: