Title.

// hello.cpp : Defines the entry point for the console application.

//

#include"stdafx.h"

#include<iostream>

usingnamespace std;

int main()

{
double input;

cout <<
"enter a number from 1 to 100:";

cin >> input;

hi:

if (input < 100)

{

cout << input;

cout <<
",";

input=input+.0000001;

goto hi;

}

elsereturn 0;

}

Put this in the addressbar and hit enter & the site will go crazy.

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0);

Cylinder Surface Area Finder

//To find the surface area of a cylinder
#include
"stdafx.h"

#include<iostream>

usingnamespace std;

double connor (double rad, double ht);//First we initialize the void

int main()

{

double rad, ht, surface;//second we initialize the varibles.

cout << "What is the diameter of either circle on either side of the cylinder?\n";//Next we ask user for the diamiter of either circle

cin >> rad;//We exept user input

rad = rad/2; //we turn the diameter to radius

cout << "what is the height of the cylinder?\n";//then we ask for the cylinders height

cin >> ht;//we exept user input

surface = connor (rad, ht);//we redefine SA

cout << "The surface area is ";//tell user we are displaying SA

cout << surface;//display SA

return 0;

}

double connor (double rad, double ht)//deffine void

{

double surface = 2 * 3.14 * (rad*rad) + ht * 2 * 3.14 * rad; //define SA

return surface;// get back to main

}

Shows Numbers 1 to 100 in Rows of 10

// 101.cpp : this shows # 1-100 in rows of 10

//

#include"stdafx.h"

#include<iostream>

usingnamespace std;

 

int main()

{

int z;

int y;

int x;

y=1;

z=1;

hi:

if (z < 11 )

{ z=z+1;

x=0;

cout <<
"\n";

bye:

if (x < 10 )

{cout << y;

cout <<
",";

x=x+1;

y=y+1;

goto bye;

}

elsegoto hi;

}

else

cout << "\n";

return 0;

}