Created
July 11, 2016 21:33
-
-
Save KhaledElshamy/e006369198df50b247d7a3b556b8d162 to your computer and use it in GitHub Desktop.
URI ONLINE JUDGE Problem 1178
This file contains hidden or 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() { | |
| //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