Skip to content

Instantly share code, notes, and snippets.

@KhaledElshamy
Created July 11, 2016 21:33
Show Gist options
  • Select an option

  • Save KhaledElshamy/e006369198df50b247d7a3b556b8d162 to your computer and use it in GitHub Desktop.

Select an option

Save KhaledElshamy/e006369198df50b247d7a3b556b8d162 to your computer and use it in GitHub Desktop.
URI ONLINE JUDGE Problem 1178
#include <stdio.h>
int main() {
//URI ONLINE JUDGE Problem 1178
double n;
int i;
scanf("%lf", &n);
for(i=1; i<=100; i++)
{
printf("N[%d] = %.4lf\n", (i-1), n);
n = n/2;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment