answersLogoWhite

0

#include<conio.h>

#include<stdio.h>

void main(void)

{

int sell_pr, profit, cost_pr, cost_pr_one_item ;

clrscr();

printf("Please enter the selling price of 15 items:");

scanf("%d", &sell_pr);

printf("Please enter the profit earned on 15 items:");

scanf("%d", &profit);

cost_pr = sell_pr - profit;

cost_pr_one_item = cost_pr/15;

printf("Cost price of one item is %d", cost_pr_one_item);

getch();

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

The distance between two cities in km is input through the keyboard write a program to convert and print this distance in meters feet inches and centimeters?

mesh's basic salary is input through the keyboard. his dearness allowance is 40% of basic salarying , and house rent allowance is 20% of basic salaried. write a program to calculate his gross salary


Writa a program to print a number in word eg if 972 is entered through the keyboard that should print nine seven two?

nine seven two


What is the function of a keyboard to the computer-and-part-of-keyboard?

the keyboard enable the user to communicate with the computer through typying of(input of data).


How are things sold through Personal selling?

Selling can take place through a retail transaction, a business-to-business transaction, or through telemarketing


How are things sold through professional selling?

Selling can take place through a retail transaction, a business-to-business transaction, or through telemarketing


How do you fill snap form for MBA?

through keyboard


How are things sold through professional personal selling?

Selling can take place through a retail transaction, a business-to-business transaction, or through telemarketing


How can you replace your droids keyboard?

Yes, you can replace the keyboard. 1. Go to market place on your phone. 2. Type in keyboard in the search bar and browse through which keyboard you would like to try. ( a very popular, well developed keyboard is smartkeyboard) 3. install the application and follow the instructions as to how to set it is as your default keyboard.


How can I play a MIDI keyboard through my PC?

To play a MIDI keyboard through your PC, you will need to connect the keyboard to your computer using a MIDI-to-USB cable or interface. Then, you can use music software like a digital audio workstation (DAW) to recognize and play the MIDI signals from your keyboard. Make sure to select the MIDI keyboard as the input device in the software settings to start playing and recording music on your PC.


What is the keyboard command for a subscript in a mac?

Hold the apple/command key and the (=/+) key and then type what you want...This works in Microsoft word... not such about anything else.


How can you run through slides in a slide show?

you press on the arrow keys on the keyboard.


The most common way to input data into the computer is through what?

An input device. In fact it is the ONLY way to input data into a computer. However, the most common input device is the computer's hard-drives or mass-storage devices (which are also output devices), followed by the mouse and keyboard.