write a program that asks you toenter an ASCII code value,such az 66,and then prints the character :19:having that ASCII code.
Printable View
write a program that asks you toenter an ASCII code value,such az 66,and then prints the character :19:having that ASCII code.
شما بايد كد ASCII كه از ورودي مي گيري در يك متغير صحيح(int) ذخيره و سپس با فورمت كاراكتر(c%) چاپ يا ذخيره نمائي.يعني:نقل قول:
به همين سادگي،به همين خوشمزگي!کد:...
scanf("%d",&input);
printf("%c",input);
...
دقیقا همینه که دوست عزیز شرلوک گفته
این خیلی آسونه:
[QUOTE]
#include <stdio.h>
#include <conio.h>
void main()
{
int a=0;
printf("please enter the ascii code : ");
scanf("%d",&a);
printf("the character is: %c",a );
}
[/QUOTE]