Welcome to AMIE Study - AMIE India Students Forum

AMIE Study - AMIE India Students Forum

collapse collapse

* Shoutbox

Refresh History
  • kirannm: hii
    February 18, 2018, 03:39:53 PM
  • GCPATIL: Can I reregistration of section A done by online procedure
    January 30, 2018, 06:45:08 PM
  • girish_amie: Please upload electrical engineering latest question paper
    December 06, 2017, 09:25:40 AM
  • JYOTI VERMA: agr kisi ko apna exam city and center change krana hom to use kya krna chahiye plz suggest.
    October 14, 2017, 01:16:11 PM
  • JYOTI VERMA: amie ka exam center kaise change kr skte hai agr kiisi ko pta ho to plz btaiye .
    October 14, 2017, 01:15:31 PM
  • anoop.goyal9: error in online fee payment for winter 2017 examination
    October 12, 2017, 07:23:34 AM
  • ramajit: [link]
    October 06, 2017, 12:34:12 PM
  • ramajit: yes.. results announced... me 2/3 passed in Sec-B prodn Engg... xo xo... wow....
    October 06, 2017, 12:34:09 PM
  • suji.sujithraj: Guys check your results... its announced...!!!
    October 06, 2017, 10:26:53 AM
  • ramajit: summer'17 result will come or not ?
    October 06, 2017, 06:44:28 AM
  • jitu12341: Result has been declared ♡♡♡♡
    October 06, 2017, 06:30:56 AM
  • jitu12341: breaking news results will be publshed in March 18 along with winter 17
    October 04, 2017, 12:54:36 PM
  • ramajit: any tentative date aware about Summer'17 result
    October 03, 2017, 03:13:48 PM
  • nelokulood: What is the last date to apply for lab and project for winter 2017 session
    October 02, 2017, 11:39:31 AM
  • nelokulood: When will amie summer  2017 results be published
    October 02, 2017, 11:38:50 AM
  • SnrTech: please upgrade my membership to super member I already made payments Rs.500/- into bank account
    September 27, 2017, 11:17:12 PM
  • jitu12341: Is there anybody having EL 404, circuit and field theory notes  please mail on [email protected]
    September 23, 2017, 05:53:34 AM
  • jitu12341: Result is expected in first week of October
    September 23, 2017, 05:48:39 AM
  • manirock87: Result kab aayega for summer 2017
    September 22, 2017, 06:59:35 AM
  • mudassir.search007: Do i need to pay a separate fee for the Section A examination after paying the re-registration Fee (SEC A)
    September 20, 2017, 10:25:06 PM

* Search


* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Board Stats

  • stats Total Members: 48503
  • stats Total Posts: 27304
  • stats Total Topics: 6595
  • stats Total Categories: 6
  • stats Total Boards: 31
  • stats Most Online: 626

Author Topic: PROGRAM TO CALCULATE DISCOUNT & TOTAL EXPENSE  (Read 1467 times)

Description:
April 13, 2010, 12:58:38 PM
  • phpBB Moderator
  • Senior Member
  • **
  • Posts: 877
    • View Profile
Advertisement
/* CALCULATION OF TOTAL EXPENSES IN CASE OF DISCOUNT */
   
#include<stdio.h>
#include<conio.h>
main()
{
int qty;
float dis,price,tot_price;
printf("Enter the quantity and price of the itemn");
scanf("%d%f",&qty,&price);
if(qty>1000)
{dis=(float)0.1;
 tot_price=(qty*price)-(qty*price*0.1);
 printf("Total expense=%.2f",tot_price);
}
else
{tot_price=qty*price;
 printf("Total expense=%.2fn",tot_price);
}
getch();
}
« Last Edit: January 01, 1970, 04:00:00 AM by Guest »


Regards,
Charulatha.
 

Related Topics

  Subject / Started by Replies Last post
2 Replies
392 Views
Last post October 04, 2011, 09:01:13 AM
by harshfooty2
1 Replies
1214 Views
Last post July 26, 2011, 04:45:18 PM
by geetha410
0 Replies
1660 Views
Last post September 22, 2011, 12:49:13 PM
by prayrona
1 Replies
1539 Views
Last post March 17, 2014, 03:41:02 PM
by Mr.ocean
0 Replies
1141 Views
Last post June 11, 2014, 06:56:32 PM
by pravin424
1 Replies
1136 Views
Last post June 13, 2014, 05:11:36 PM
by pravin424
6 Replies
1791 Views
Last post September 28, 2014, 06:12:14 PM
by rahulm500

* Search

* Subscribe to Forum

Enter your email address:

Advertisement