Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- int s;
- printf("3을 곱하고 싶은 수를 써넣어라 : ");
- scanf("%d", &s);
- int t; //함수에 필요한 변수의 선언 int three(int t)와 같은 의미
- goto three;
- main: //함수의 선언과 반환을 표현
- printf("3을 곱하니 %d가 나왔다\n", t);
- return 0;
- //three{
- three:
- printf("3을 곱하고 있다\n");
- t = s * 3;
- goto main; //함수의 반환
- //}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement