W.A.P. C++

WAP | CPP | Programs in C++ | C++ Solutions

Snehil Khanor's Binary Log

Write a program to calculate sum of two numbers


Two numbers are taken from the user and sum is calculated.
Select To use this code as it is.. select and copy paste this code into code.cpp file :)
  1. #include <iostream.h>
  2. #include <conio.h>
  3. void main()
  4. {
  5. clrscr();
  6. float a,b,s;
  7. cout<<"Please enter a no.: ";
  8. cin>>a;
  9. //Coding by: Snehil Khanor
  10. //http://WapCPP.blogspot.com
  11. cout<<"Please enter another no.: ";
  12. cin>>b;
  13. s=a+b;
  14. cout<<"The sum is: "<<s;
  15. getch();
  16. }

1 comments:

Anonymous March 11, 2014 at 6:39 AM  
This comment has been removed by the author.

Search

About WAP C++

Here you'll find a wide range of programs' solution ranging from beginer level to advanced level.
All programs here are made, compiled and tested by me..and are running absolutely fine.. still if you find any bug in any program do let me know :)

Followers

Subscribe via email

Enter your email address:

Delivered by FeedBurner

my Binary Log

Blog Archive



eXTReMe Tracker