Question about Computers & Internet

1 Answer

Turbo c source code

Source code for calculator

Posted by on

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that gotĀ 5 achievements.

    Governor:

    An expert whose answer gotĀ voted for 20 times.

    Scholar:

    An expert who has written 20 answers of more than 400 characters.

  • Expert
  • 148 Answers

#include<stdio.h>

float add(float,float);
float sub(float,float);
float product(float,float);
float divide(float,float);

void main()
{
float n1,n2;
char sym,choice;
printf("This Program is a program for calculator\n\n");
scanf("%f%c%f",&n1,&sym,&n2);
if(sym=='+')
printf("\n%f",add(n1,n2));
if(sym=='-')
printf("\n%f",sub(n1,n2));
if(sym=='*')
printf("\n%f",product(n1,n2));
if(sym=='/')
printf("%f",divide(n1,n2));
printf("\nDo you wish to continue[y/n]");
scanf("%s",&choice);
if(choice=='y'||choice=='Y')
main();
}

float add(float m1,float m2)
{
return(m1+m2);
}

float sub(float m1,float m2)
{
return(m1-m2);
}

float product(float m1,float m2)
{
return(m1*m2);
}

float divide(float m1,float m2)
{
return(m1/m2);
}

Posted on Feb 21, 2008

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

What are the codes using in making calculator or calculating the numbers?


http://www.mycplus.com/free-utilities/scientific-calculator/

u have here a very good example

You may also try links using google
Results 11 - 20 from around 1.730.000 for c++ program calculator. (0,18 seconds)

I saw a lot of links , many with usual c++ code and usual operations

Mar 19, 2010 | Borland Turbo Pascal 7.0 for DOS for PC

2 Answers

VIDEO LIBRARY MANAGEMENT SYSTEM source code IN visual basic


You can get your project from

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=70428&lngWId=1

Nov 09, 2009 | Microsoft Visual Basic 6.0 for PC

1 Answer

Problem for installing turboc++4.5 in wista


ok man i too had teh same prob dont back to xp

Before going to the details u have to create a folder (any name will do). Here we name it as Turbo

Copy the TC into the Turbo folder

Run the DOSBox 0.72 from the icon located on the desktop or from the location of the installation folder

Then u are presented with two screens which look like the command prompt in Windows

Now u are presented with two screens. One with a Z prompt. U can ignore the other screen.

There type the following commands at the command prompt [Z]:

Mount [Type in any alphabet that u wish except z] [Type the source of the turbo C] press enter

Now , Type in the following commands after the Z prompt:

Z: mount d c:\Turbo\ [The folder TC is present inside the folder Turbo]

* Now u should get a message which says: Drive D is mounted as a local directory c:\Turbo\ ***

Now type d: to shift to d: prompt .

D: cd TC [The contents inside the folder Turbo gets mounted as a virtual drive (Here D drive)

D: cd Bin

D: TC or Tc.exe [This presents u the Turbo C++3.0 screen]

On the Turbo C++ goto Options>Directories>Change the source of TC to the source directory [D] ( i.e. virtual D: refers to original c:\Turbo\ . So make the path change to something like D:\TC\include and D:\TC\lib respectively )

===========================================================

In order to get the full screen use the key combination of Alt and Enter

When u exit from the DosBox [precisely when u unmount the virtual drive where Turbo C++ 3.0 has been mounted] all the files u have saved or made changes in Turbo C++ 3.0 will be copied into the source directory(The directory which contains TC folder)

It is a good idea to backup your files in the source directory prior to running DOSBox 0.72

For additional help go through the readme file located in the installation folder or look on the website of the DOSBox forum.

The above procedure has been successfully implemented on Windows Vista Ultimate 64 bit

IMP : Don't use shortcut keys to perform operations in TC because they might be a shortuct key for DOSBOX also . Eg : Ctrl+F9 will exit DOSBOX rather running the code .

Jun 17, 2009 | Microsoft Windows Vista Ultimate Edition

1 Answer

I need to program a calculator in vb 6


Dear here is the link that contains a sample code to your problem.

http://www.vb6.us/source-code/simple-calculator-written-vb6

Best regard

May 26, 2009 | Microsoft Windows XP Professional

1 Answer

What is program code of sudoku in turbo c


Hi, You can download the source code of Sudoku in C from below link:- http://www.techfinesse.com/game/sudoku_solver.php

Thanks! Sandy

Apr 21, 2009 | Computers & Internet

2 Answers

Please i want source code calculator using asp.net


i want the source code for simple calculater in asp.net

Mar 17, 2009 | Microsoft Computers & Internet

1 Answer

I was finding a games program with the use of turbo C with its codes...please help me...i need it now for our project in this final term..


Find it here:

  • http://moshcode.blogspot.com/2005/07/turbo-c-source-code-for-instant.html
  • http://www.codeproject.com/KB/cpp/tigergoat.aspx
P.S.: If this information was helpful, please rate this solution.

Mar 12, 2009 | Computers & Internet

1 Answer

C++ program


please visit the link and download the zipfile
in that you can see the source code for A colorful scientific calculator. Written completely in c++. 

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1125&lngWId=3

All the best

Dec 27, 2008 | Computers & Internet

2 Answers

Pls tell me restriction code of nokis 6233 its imei no. is 359727009486627...pls hurry i shall be very thankful to u


i asume that you are inserting another netwotk simm. this means your phone is network locked. you have 3 solutions
1. have the phone unlocked by a local shop
2. have a special code calculated based on your imei
3. purchase a turbo simm seen a shop on ebay
4onesexpress-07802458019 who sel turbo simm for 10pounds

Dec 02, 2008 | Nokia 6233 Cellular Phone

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

1,008 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...