Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(){
- int month =1, money=1;
- while(money<=1000000){
- month++;
- money*=2;
- }
- printf("%d개월째에 1000000원 돌파\n", month);
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement