#include<stdio.h>int main(){int a=5,b=1;while(b<=5){a=3*a+2;b=b+1;}printf("a5は%dです。",a); return 0;}
Standard input is empty
a5は1457です。
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!