Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
int main(int argc, char * argv[]) {
float accumulator = 0.0;
int num_of_times = 0;
int ii = 1;
float average = 0.0;
// Ask until we have a valid input
while (1) {
@only-entertainment
only-entertainment / stuff
Created September 4, 2012 19:11 — forked from anonymous/stuff
MC
#include <stdio.h>
#include <stdlib.h>
int main(int agrv, char * argc[])
{
float N = 0;
printf("Enter a number?");
scanf("%f", &N);
{
double num = N;
@only-entertainment
only-entertainment / functions
Created September 20, 2012 21:08 — forked from anonymous/functions
functions
#include <stdio.h>
int foo(int, int, int, int, int, int);
int main(int argc, char * argv[])
{
// Scoped to 'main'
int a, b, c = 0;
int x = 10;
int d, e = 0;