Problem 7: ASCII Values

Write a program to print the following output:
Ascii value of ‘A’ is: ____
Ascii value of ‘@’ is: ____
In the blank space you should show the ascii code of the given characters.

6,045 total views, 4 views today

Comments

comments

12 thoughts on “Problem 7: ASCII Values”

  1. #include
    int main()
    {
    int x;
    x = ‘A’;

    int y;
    y = ‘@’;

    printf(“Ascii value of ‘A’ is: %d\n”,x);
    printf(“Ascii value of ‘@’ is: %d”,y);

    return 0;
    }

  2. #include
    int main()
    {
    char a=’A’;
    char b=’@’;

    printf(“Ascii value of ‘A’ is: %d\n”,a);
    printf(“Ascii value of ‘@’ is: %d\n”,b);

    return 0;
    }

  3. #include
    int main ()
    {
    char num1,num2;
    num1 =’A’;
    num2=’@’;
    printf(“%d %d”,num1,num2);
    return 0;
    }

  4. #include
    main()
    {
    char x=’A’,y=’@’;

    printf(“\nAscii value of ‘A’ is: %d”,x);
    printf(“\nAscii value of ‘@’ is: %d\n”,y);
    }

  5. #include
    int main()
    {
    char a=’A’;
    char b=’@’;

    printf(“Ascii value of ‘A’ is: %d\n”,a);
    printf(“Ascii value of ‘@’ is: %d\n”,b);

    return 0;
    }

  6. #include
    int main()
    {

    printf(“Ascii value of ‘A’ is: 65\n”);
    printf(“Ascii value of ‘@’ is: 64”);

    return 0;
    }

  7. #include
    int main()
    {
    char x=’A’,y=’@’;
    printf(“The value of A is %d\n”,x);
    printf(“The value of @ is %d”,y);
    }

  8. #include
    int main(){
    printf(“Ascii value of ‘A’ is: %d\nAscii value of ‘@’ is: %d”, ‘A’, ‘@’);
    return 0;
    }

  9. #include
    int main ( ) {
    int x = ‘A’, y = ‘@’;
    printf (“Ascii value of ‘A’ is_%d\n”, x);
    printf (“Ascii value of ‘@’ is_%d\n”, y);

    return 0;
    }

  10. #include
    int main()
    {
    printf(“Ascii value of ‘A’ is:-%d”,’A’);
    printf(“\n”);
    printf(“Ascii value of ‘@’ is:-“);
    printf(“%d”,’@’);

    return 0;
    }

  11. #include
    int main()
    {
    printf(“Ascii value of ‘A’ is:-%d”,’A’);
    printf(“\n”);
    printf(“Ascii value of ‘@’ is:-“);
    printf(“%d”,’@’);

    return 0;

Leave a Reply

Your email address will not be published.