shahbazassxauyc dcuic
Sunday, 17 July 2016
Tuesday, 24 November 2015
C++ code to change temperature from celcius to fahrenheit
#include <iostream>
using namespace std;
int main()
{
float celcius, fahrenheit;
cout << "Temperature In Celcius : ";
cin >> celcius;
fahrenheit = ((9 / 5)*celcius) + 32;
cout << "Temperature In Fahrenheit : " << fahrenheit << " F" << endl;
return 1;
}
using namespace std;
int main()
{
float celcius, fahrenheit;
cout << "Temperature In Celcius : ";
cin >> celcius;
fahrenheit = ((9 / 5)*celcius) + 32;
cout << "Temperature In Fahrenheit : " << fahrenheit << " F" << endl;
return 1;
}
C++ code to find table of any number
#include <iostream>
using namespace std;
int main()
{
int n;
cout << "Enter A Number : ";
cin >> n;
cout << n << " * " << 1 << " = " << n * 1 << endl;
cout << n << " * " << 2 << " = " << n * 2 << endl;
cout << n << " * " << 3 << " = " << n * 3 << endl;
cout << n << " * " << 4 << " = " << n * 4 << endl;
cout << n << " * " << 5 << " = " << n * 5 << endl;
cout << n << " * " << 6 << " = " << n * 6 << endl;
cout << n << " * " << 7 << " = " << n * 7 << endl;
cout << n << " * " << 8 << " = " << n * 8 << endl;
cout << n << " * " << 9 << " = " << n * 9 << endl;
cout << n << " * " << 10 << "= " << n * 10 << endl << endl;
return 1;
}
using namespace std;
int main()
{
int n;
cout << "Enter A Number : ";
cin >> n;
cout << n << " * " << 1 << " = " << n * 1 << endl;
cout << n << " * " << 2 << " = " << n * 2 << endl;
cout << n << " * " << 3 << " = " << n * 3 << endl;
cout << n << " * " << 4 << " = " << n * 4 << endl;
cout << n << " * " << 5 << " = " << n * 5 << endl;
cout << n << " * " << 6 << " = " << n * 6 << endl;
cout << n << " * " << 7 << " = " << n * 7 << endl;
cout << n << " * " << 8 << " = " << n * 8 << endl;
cout << n << " * " << 9 << " = " << n * 9 << endl;
cout << n << " * " << 10 << "= " << n * 10 << endl << endl;
return 1;
}
Subscribe to:
Posts (Atom)
Popular Posts
-
#1 : NetSol Technologies: NetSol Technologies Software House is at # 1 in raking among all software houses in Pakistan.It is on CMMI Lev...
-
Html5 Not support This video Format.
-
live match streaming jhvg hvgvj hhhhvn vdfbdf bnfgn
-
my name is shahbaz
-
#include <iostream> using namespace std; int main() { float celcius, fahrenheit; cout << "Temperature In Celcius : ...
-
#include <iostream> using namespace std; int main() { int sub1, sub2, sub3, sub4, sub5, average; cout << "Enter Mar...
-
#include <iostream> using namespace std; int main() { int num1, num2, num3, num4, sum; cout << "Enter Four Numbers ...
-
#include <iostream> using namespace std; int main() { float radius, area; cout << "Enter The Radius Of Circle : ...
Recent Posts
Powered by Blogger.
Welcome
About Me
Statistics
Find Us On Facebook
Komentar
About
Paling Dilihat
-
#1 : NetSol Technologies: NetSol Technologies Software House is at # 1 in raking among all software houses in Pakistan.It is on CMMI Lev...
-
Html5 Not support This video Format.
-
live match streaming jhvg hvgvj hhhhvn vdfbdf bnfgn
-
my name is shahbaz
-
#include <iostream> using namespace std; int main() { float celcius, fahrenheit; cout << "Temperature In Celcius : ...
-
#include <iostream> using namespace std; int main() { int sub1, sub2, sub3, sub4, sub5, average; cout << "Enter Mar...
-
#include <iostream> using namespace std; int main() { int num1, num2, num3, num4, sum; cout << "Enter Four Numbers ...
-
#include <iostream> using namespace std; int main() { float radius, area; cout << "Enter The Radius Of Circle : ...