Jump to content

help on basic calculator?pls?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
exypnos

exypnos

    Newbie

  • Members
  • Pip
  • 1 posts
i need an the coding for following output..
using
#include <stdio.h>
#include <conio.h>

**************************************************

enter a number=

enter second number=

enter an option:
[1] multiply
[2] addition
[3]substraction
[4] divide


the result is=




press an option to:
[1] continue
[2] exit

**************************************************

#2
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
It seems like you've no experience with C nor C++. I will suggest you to pick up a tutorial, and read about all the basics of C and C++ programming. To do what you want to, you shall minimum read about: input/output (I/O), if-statements or switch-statements and operators.

#3
zeusukr

zeusukr

    Newbie

  • Members
  • Pip
  • 2 posts
use switch operator

#4
DevilsCharm

DevilsCharm

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 884 posts
Was that supposed to be code syntax? I used to do C++ a little, and even for the simplest operation there has to be a lot of code.