You are not logged in. Please login at to post your questions!


Program not asking input

I am trying simple program as below in C++ but it is not asking input at all. What is the problem ? Pls help

// i/o example

include <iostream>

using namespace std; int main () { int i; cout << "Please enter an integer value: "; cin >> i; cout << "The value you entered is " << i; cout << " and its double is " << i*2 << ".\n"; return 0; }

asked 08 Feb, 20:00

fly1122's gravatar image

accept rate: 0%

I tried your code it is working just by adding '#' in front of include. Code is right.


answered 11 Feb, 23:28

aashkumar5's gravatar image

accept rate: 0%

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 08 Feb, 20:00

question was seen: 57 times

last updated: 11 Feb, 23:28