#include<stdio.h>int main(){ int i,j; for(i=8,j=0;i>0;i/=2,j+=i);printf("%d",j);return 0;}
Standard input is empty
7
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!