วันจันทร์ที่ 18 กรกฎาคม พ.ศ. 2554
ข้อ7
#include<stdio.h>
#include<conio.h>
main()
{
int a;
char b;
do
{
printf("Enter Num : ");
scanf("%d",&a);
if (a%2==0)
{
printf("\n%d is even Num\n",a);
}
else
{
printf("\n%d is odd Num\n",a);
}
printf("\nDo you want to continue [y,n] : ");
scanf("%c",&b);
b=getche();
printf("\n********************\n\n");
}
while(b=='y');
getch();
}
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น