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 <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; | |
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 <stdio.h> | |
#include <stdlib.h> | |
int main(int agrv, char * argc[]) | |
{ | |
float N = 0; | |
printf("Enter a number?"); | |
scanf("%f", &N); | |
{ | |
double num = N; |
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 <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) { |