Computer Science, asked by sourajoy2020, 8 months ago

Write the Variable
Description of the Program :
Write a menu driven program/
sub-routine program to input a
word and find:
a) Number of vowels
b) The sum of their ASCII
values
c) Number of times the letter P
or p appears​

Answers

Answered by Anonymous
0

Answer:

#include <stdio.h>

int main() {

char c;

printf("Enter a character: ");

scanf("%c", &c);

// %d displays the integer value of a character

// %c displays the actual character

printf("ASCII value of %c = %d", c, c);

return 0;

}

Similar questions