Friday, March 30, 2018

How To find ASCII Value Of Character In C++.

This program is about how to find ascii value of character in c++.


#include<conio.h>
#include<stdio.h>
#include<iostream.h>
int main()
{
char ascii;
clrscr();
cout<<"enter your character:";
cin>>ascii;
cout<<"ascii valu is:"<<(int)ascii<<endl;
getch();
return 0;
}

No comments:

Post a Comment

Generate Even Numbers in a Range In PHP.

$start = 1; $end = 20; for ($i = $start; $i <= $end; $i++) {     if ($i % 2 == 0) {         echo $i . " is even.<br>";   ...