PROBLEM LINK
https://www.hackerrank.com/contests/y16csecs/challenges/y16-ascii-value-of-given-character
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
char c;
scanf("%c",&c);
printf("%d",c);
return 0;
}
https://www.hackerrank.com/contests/y16csecs/challenges/y16-ascii-value-of-given-character
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
char c;
scanf("%c",&c);
printf("%d",c);
return 0;
}
Comments
Post a Comment