Skip to content

Instantly share code, notes, and snippets.

@DanielDe
Created October 8, 2012 05:38
Show Gist options
  • Save DanielDe/3850883 to your computer and use it in GitHub Desktop.
Save DanielDe/3850883 to your computer and use it in GitHub Desktop.
CS 10 SI Classroom Session 1 - Bad Style Example
#include <iostream>
using namespace std;
int main(){
cout<< "Enter the radius of a circle:";
int a;
cin >> a;
double b=3.1415926535;
cout << "The area of the circle with radius " << a << " is " << b * a * a << " and the circumference is " << 2 * b * a;
return 0; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment