Question about Computers & Internet

1 Answer

O/p plzzzzzzz help me What does the code "cout<<(0==0);" print?

Posted by on

Ad

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that gotĀ 5 achievements.

    Sergeant:

    An expert that hasĀ over 500 points.

    Champion:

    An expert who has answered 200 questions.

  • Expert
  • 310 Answers

What is the limit for cout.

Posted on Feb 26, 2008

Ad

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 there,
Save hours of searching online or wasting money on unnecessary repairs by talking to a 6YA Expert who can help you resolve this 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.

Here's a link to this great service

Good luck!

Posted on Jan 02, 2017

Ad

Add Your Answer

Uploading: 0%

my-video-file.mp4

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

×

Loading...
Loading...

Related Questions:

1 Answer

Can you convert dollar to peso in c++


1) Find the dollar to peso conversion rate. You can go to Reuters to get the latest exchange rate.

2) Then Argentinian peso for example:

int main()
{
double dollar, peso;
int rate;

peso = 0;
cout << "Enter dollar amount: ";
cin >> dollar;
cout << "Enter exchange rate:";
cin >> rate;
cout.setf(ios::fixed);
cout.precision(2);
peso += dollar * rate;
cout << dollar << " dallars is equal to " << peso << " peso's." << endl;

return 0;
}

With this program you input the amount in dollars and it will give you the amount in peso's.

Sep 24, 2011 | Computers & Internet

Tip

C++ Source code for Celsius to Fahrenheit


#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
int main(float nNumberofArgs, char* pszArgs[])
{
double celsius;
cout << "Enter the temperature in Celsius:";
cin >> celsius;

double factor;
factor = 212 - 32;

double fahrenheit;
fahrenheit = factor * celsius/100 + 32;

cout << "Fahrenheit value is:";
cout << fahrenheit << endl;
system("PAUSE");
return 0;
}

on Jun 16, 2010 | Computers & Internet

1 Answer

What is the source code having an output of 1 21 321 using for loop statement in microsoft visual c++?


I believe you're asking for a loop that will output that sequence specifically. One way to go about it is with the following code:

for (int i = 0; i < 3; i++)
{
if (i == 0)
cout << i+1 << endl;
else if (i == 1)
cout << i + 1 << i << endl;
else
cout << i +1 << i << i - 1 << endl;
}

I know the hard coded numbers is a bit inelegant, but in this case this snippet of code will solve the problem.

Aug 24, 2011 | Microsoft Visual C++ 6.0 Professional...

2 Answers

Example of program in c++ and there code


Hello my friend, I am Jonas I work as a programmer in some various programming languages. Here try this code:
This program is design to output the Diameter, circumference, and area given a radius of a circle. #include <iostream.h> int main() { int radius, diameter, circumference, area, pi; cout << " Enter the radius of a circle\n"; cin >> radius; pi = 3.14159; diameter = 2 * radius; circumference = 2 * pi * radius; area = pi * (radius)^2; cout << "Diameter formula executing.....(2 x r)\n"; cout << "Diameter is " << diameter << endl; cout << "circumference formula executing.....(2 x pi x r)\n"; cout << "circumference is " << circumference << endl; cout << "area formula executing......(pi x [r x r])\n"; cout << "area is " << area << endl; return 0; }
Also if you need tutorial you can visit this site Learning C++ .Hope this solution will able to help your problem solved. If you need more assistance just reply to this post or send me a mail at geo_jonas@yahoo.comThank you and Godbless.

Jul 09, 2009 | Computers & Internet

1 Answer

How i make calculator by using source code in c++?


hi,
here is the code u looking for

#include <iostream.h>
using namespace std;
float sub (float a, float b)
{
float dif;
dif=a - b;
return dif;
}

float addition (float c, float d)
{
float sum;
sum=c+d;
return sum;
}

float divi (float e, float f)
{
float quo;
quo = e/f;
return quo;
}
float multi (float f, float g)
{
float pro;
pro=f * g;
return pro;
}

int main ()
{
float a;
float b;
float opt;

cout << "Welcome to the calculator" << endl;
cout << "There are four options " << endl;
cout << "Option 1 is subtraction, Option 2 is addition, option 3 is division, and option 4 is multiplication " << endl;
cout << "Enter your option and two digits " << endl;
cin >> opt >> a >> b;


if (opt == 1)
{
float temp= sub (a, b);
cout << "Your difference is " << temp << endl;
}

else
if (opt==2)
{
float temp2= addition (a, b);
cout << "Your sum is " << temp2 << endl;
}
else
if (opt == 3)
{
float temp3= divi (a,b);
cout << "Your quotient is " << temp3 << endl;
}
else
if (opt == 4)
{
float temp4= multi (a,b);
cout << "Your product is " << temp4 << endl;
}
else
{
cout << "That function is not supported in calculator!" << endl;
}
cout << "Thank you for using calculator" << endl;

return 0;
}

Thanks!

Mar 19, 2009 | Microsoft Computers & Internet

1 Answer

Write a program in C to reverse each word at its own position in a string


HI..this is a program in C++..plz convert it to C by simply making some changes in the header files and cout, cin statements..

#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
#include<stdio.h>
void main()
{clrscr();
char ch[100];
cout<<"\n Enter a Character: ";
gets(ch);
for(int length=0;ch[length]!='\0';length++);
for(int i=0,j=length;i!=j;i++,j--)
{char temp=ch[i];
ch[i]=ch[j];
ch[j]=temp;
}
cout<<"\n Reversed String: ";
puts(ch);
getch();
}

Mar 07, 2009 | Intel Pentium 4 505J Prescott 533MHz...

1 Answer

Print a format shown below with the help of for loop


#include<iostream.h>
#include<conio.h>
void main()
{
int i;
char k='*';
for(i=5;i>0;i--)
{
for(j=i-1;i>0;i--)
{
cout<<k;
}
cout<<" ";
}
getch();
}



the output will be

****
***
**
*


r u happy dear
wanna solve more problems
am glad to solve it
pls send it through fixya


k..
wat r u doing yaar
my id is josucyriac@gmail.com

Jan 10, 2009 | Computers & Internet

2 Answers

C++ program for insertion, deletion in linked list and 2d array pls send the details for linked list so that i can understand it the best..considering me as a beginner.


program for deletion


#include<iostream.h>
void main()
{
int a[10],i,n,x;
cout<<"\n\t\tPROGRAM TO DELETE AN NUMBER FROM AN ARRAY";
cout<<"\nEnter the size of the array:";
cin>>n;
for(i=0;i<n;i++)
{
cout<<"\nEnter the number:";
cin>>a[i];
}
cout<<"\nEnter the position to be deleted:";
cin>>x;
for(i=x;i<n;i++)
a[i]=a[i+1];
for(i=0;i<n-1;i++)
cout<<a[i]<<" ";
}

Oct 13, 2008 | Computers & Internet

1 Answer

Wht is the solution..........following program is giving compile time error


could you please send me an example of source code for my example in school?
example
#include<stdio.h> etc....

plssss!

Oct 03, 2008 | Microsoft Windows Vista Ultimate Edition

3 Answers

C programming coading


1
2 2
3 3 3
4 4 4 4
5 5 5 5 5

Apr 30, 2008 | Computers & Internet

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

Related Topics:

32 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18425 Answers

Alun Cox

Level 3 Expert

2678 Answers

David Payne
David Payne

Level 3 Expert

14162 Answers

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

Answer questions

Manuals & User Guides

Loading...