Demo entry 1776702

nopara

   

Submitted by anonymous on Jun 01, 2015 at 08:29
Language: C. Code size: 330 Bytes.

#include <stdio.h>
void out(int);
int get_number(void); //引数を受け取らない
int main(void){
	int a,b;
	a=get_number();	//実引数を与えない 
	b=get_number(); 
	out(a);
	out(b);
	return 0;
}
int get_number(void){
	int n;
	puts("整数を入力してください.");
	printf("整数n:");
	scanf("%d", &n);
	return n;
}
void out(int a){
	printf("%d\n",a);
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).