Program in C, C Plus Plus (CPP) to display the ASCII Values with flowchart

Program in C, C Plus Plus (CPP) to display the ASCII Values with the flowchart

In this tutorial, we will learn about the followings;

  1. Display the ASCII Values with the flowchart
  2. Program in C Plus Plus (CPP) to display the ASCII Values
  3. Program in C to display the ASCII Values with the flowchart

Display the ASCII Values with the flowchart

ASCII Value program in c,cpp flowchart
Figure: ASCII Value flowchart.

Program in C Plus Plus (CPP) to display the ASCII Values

#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
	int num;
	char chara;
		cout<<"enter character:";
		cin>>chara;
		num=chara;
		cout<<"ASCII value of:"<<chara<<"="<<num;
		getch();
}

Output

ASCII Value program C
ASCII Value program C

Program in C to display the ASCII Values with the flowchart

#include<stdio.h>
#include<conio.h>

int main()
{
	int num;
	char chara;
		printf("enter character:");
		scanf("%c",&chara);
		num=chara;
		printf("ASCII VALUE OF:%c= %d",chara,num);
		getch();
}

Output

ASCII Value program C
Figure: ASCII Value program C.
Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.