Help with C++ Program ?
Program takes celsius degree
// and converts it to fahrenhite
// in increments of 5
#include <iostream>
using std::cout; // program uses cout
using std::cin; // program uses cin
using std::endl; // program uses endl
#include <iomanip>
using std::setw;
int main()
{
int c, f, even, odd; // declares variables
cout << "Input data in intervals of 5" << endl;
cout << "Start from 0" << endl;
for (f = 0; f < 100; f++)
// Counter to loop a hundred times
{
f = f*5;
c = (.5555556)*(f-32);
if( c & 0x00000001 )
{
c = even;
}
else
c = odd;
cout<< setw( 5 ) << "Odd"<< setw( 5 ) << "Even" << endl;
cout<< setw( 5 ) << odd << setw( 5 ) << even << endl;
// conversion Formula set to c
cout << "The Celsius equivalent is: " << c;
// printout statement
if(c < 35)
// Checks to see
Help with C++ Program ?c++ string
..yikes, what are you trying to do!?
is it a program that takes C, converts it to F, and THEN adds 5 , or is it a program that displays the C temperature in F, in intervals of 5?
More Related Questions and Answers ...
The information post by website user , we not guarantee correctness.
Dental Treatment Skin Whitening Skin Problems Skin Rashes Shoes
