‰ð“š—á 6-4-1

y–â‚Pz

#include <stdio.h>

int main( void )
{
	int data1 = 1000;
	int data2;

	do {
		printf( "®”’l‚ð“ü—Í " );
		scanf( "%d", &data2 );
		data1 = data1 - data2;
		printf( "data1 = %d\n", data1 );
	} while ( data1 > 0 );

	return 0;
}

y–â‚Qz

#include <stdio.h>

int main( void )
{
	char str1[128], str2[128];
	int i;

	printf( "•¶Žš—ñ“ü—Í " );
	scanf( "%s", str1 );

	i = 0;
	do {
		str2[i] = str1[i];
	} while ( str1[i++] != '\0' );

	printf( "str2 = %s\n", str2 );

	return 0;
}

¥–ß‚é¥


banner
u‰SŽÒ‚Ì‚½‚߂̃|ƒCƒ“ƒgŠwK‚bŒ¾Œêv
Copyrighticj 2000-2004 TOMOJI All Rights Reserved