וערך אסקי לתו 
קבל 
#include <stdio.h> #include <conio.h> void main() { int char2; char char1, choice; printf("Welcome To ASCII Convert Program by SpyCop\n"); printf("What do you want to do?\n"); printf("========\n"); printf("a) turn a sign into an ascii value\n"); printf("b) turn an ascii value into a sign\n"); printf("Enter your choice:\n"); choice=getch(); if (choice == 'a') { printf("Please enter a sign:\n"); scanf("%c", &char1); printf("The ascii value of %c is %d\n", char1, char1); } else { printf("Please enter a value\n"); scanf("%d", &char2); printf("The sign of the ASCII value %d is %c\n", char2, char2); } }
|
אם יש בעיות תגיד לי