Comment on Tutorial - The if Statement in C++ By Priya
Comment Added by : XavioR
Comment Added at : 2011-01-31 00:53:11
Comment on Tutorial : The if Statement in C++ By Priya
#include<iostream>
#include<conio.h>
using namespace std;
main()
{
float Call_Amount, Call_Duration;
Call_Amount = 3.99;
cout<<"Please input the duration of call(in minutes):";
cin>>Call_Duration;
If (Call_Duration > 3)
{
Additional_Minutes = Call_Duration - 3;
Additional_Charge = Additional_Minutes * 0.45;
Call_Amount = Additional_Charge + Call_Amount;
}
cout<<"Call lasted for "<<Call_Duration<<" minutes. Call amount is "<<Call_Amount<<".";
getch();
}
What's wrong with this?
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
Program using concept of byte long short and int in java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. hi...i want a code to send sms from GSM to PC.
View Tutorial By: siri at 2011-12-19 07:39:02
2. You should add the mime type as follows:
View Tutorial By: Anonymous at 2009-03-19 08:30:35
3. Thanks...
View Tutorial By: SHUVO at 2015-07-01 21:20:47
4. where i put this rar file to include comm api
View Tutorial By: shubham bansal at 2015-02-20 12:13:16
5. this text is overlapping the existing text what if
View Tutorial By: Alda at 2015-10-02 18:22:22
6. nice one
View Tutorial By: navyasri at 2012-05-02 04:41:10
7. I want to be programer
View Tutorial By: somphone at 2015-09-09 11:20:20
8. thnx for the nice tutorial. but i need to create a
View Tutorial By: sharath at 2013-09-07 16:29:19
9. Okay, this article cleared my two doubts i.e. Use
View Tutorial By: Shrikrishna Meena at 2010-09-26 12:38:04
10. Wow NIce
View Tutorial By: Zahid ALi at 2015-01-16 22:35:45