Demo entry 6760409

김소영

   

Submitted by anonymous on Sep 14, 2018 at 20:22
Language: C. Code size: 384 Bytes.

#include<stdio.h>
int main(){
	int money, dduck_bbocki, sundae;
	
	dduck_bbocki=3000;
	sundae = 3500;
	
	printf("현재 남은 용돈?? : ");
	scanf("%d", &money);
	
	if(money >= dduck_bbocki + sundae) {
		printf("떡볶이와 순대를 먹다니,, 부자닷!\n");
	}
	if(money >= dduck_bbocki) {
		printf("떡볶이를 먹을 수 있습니다.\n");
	} 
	if(money >= sundae){
		printf("순대를 먹을 수 있습니다.\n");
	}
	
	return 0;
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).