したらばTOP ■掲示板に戻る■ 全部 1-100 最新50 | |

ぷろぐらみんぐ

1まてりん:2007/05/24(木) 03:17:39 ID:???
俺の課題を鈴木さんが手伝うスレ。常時さげで

2まてりん:2007/05/24(木) 03:20:22 ID:AwZo9W86


kadai3-3

#include<stdio.h>

main()
{
int a, b, c, d, e;
int max, min;

max = a;

if (max < b)
printf("max=%d/n", b);

if (max < c)
printf("max=%d/n", c);

if (max < d)
printf("max=%d/n", d);

if (max < e)
printf("max=%d/n", e);


min = a;

if (min > b)
printf("min=%d/n", b);

if (min > c)
printf("min=%d/n", c);

if (min > d)
printf("min=%d/n", d);

if (min > e)
printf("min=%d/n", e);

return 0;
}


hw3-1

include <stdio.h>

main()
{

int integer1, integer2;

printf("Enter first integer/n");
scanf("%d", &integer1);

printf("Enter second integer/n");
scanf("%d", &integer2);

if (integer1 > integer2)
printf("The relation between two numbers is/n%d > %d/n", integer1, integer2);

if (integer1 < integer2)
printf("The relation between two numbers is/n%d < %d/n", integer1, integer2);

return 0;
}


新着レスの表示


名前: E-mail(省略可)

※書き込む際の注意事項はこちら

※画像アップローダーはこちら

(画像を表示できるのは「画像リンクのサムネイル表示」がオンの掲示板に限ります)

掲示板管理者へ連絡 無料レンタル掲示板