Toascii

#include "stdio.h"
int to_ascii(int x)
{
    return  x%128;
}
int main (void)
{
    int a;
    printf("Enter a number:\n");
    scanf("%d", &a);
    printf("%d\n", to_ascii(a));
    system("pause");
    return 0;
}

0 comments:

Post a Comment