This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream.h> | |
void main(void) | |
{ | |
int c = 0, f = 0; | |
cout << "Enter the temprature in C: "; | |
cin >> c; | |
f = c * (9/5) + 32; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream.h> | |
void main(void) | |
{ | |
int i; | |
for(i = 1; i <= 10; i++) | |
cout << "Square of " << i << ": " << i * i << endl; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream.h> | |
void main(void) | |
{ | |
cout << "1 - Calculate the area of a room: " << endl; | |
cout << "2 - Convert age into seconds: " << endl; | |
cout << "3 - Convert Celcius into farenhiet: " << endl; | |
cout << "4 - Exit" << endl; | |
int choice = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream.h> | |
void main(void) | |
{ | |
int numberTerms = 0, fNumber = 0, sNumber = 1, nNumber = 0; | |
cout << "Enter the number of terms: " << endl; | |
cin >> numberTerms; | |
cout << "The terms in this series: " << endl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream.h> | |
void main(void) | |
{ | |
int width, length, area; | |
cout << "Enter the width of the room: " << endl; | |
cin >> width; | |
cout << "Enter the length of the room: " << endl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream.h> | |
void main(void) | |
{ | |
int age = 0, ageInSeconds = 0; | |
cout << "Enter your age: " << endl; | |
cin >> age; | |
ageInSeconds = age * 365 * 24 * 60 * 60; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdlib> | |
#include <iostream> | |
using namespace std; | |
// standard c++ | |
int main(int argc, char *argv[]) | |
{ | |
// even if (choice = 'N'), do will run once | |
char choice = 'Y'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>My First Page</title> | |
</head> | |
<body> | |
<ol type="i" start=3> | |
<li><font face="verdana" size=2>Syed Hizbullah</font></li> | |
<li><font face="arial" color="#ff0000">Muheeb Ullah</font></li> | |
</ol> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstdlib> | |
using namespace std; | |
int main() | |
{ | |
int list[]={9, 1, 4, 2, 8}; | |
int i, j; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
using namespace std; | |
class Circle { | |
private: | |
double radius; | |
string color; |
OlderNewer