Sign in to follow this  
Cornel Iulian

[C] Preluarea in mod repetat a unui caracter si afisarea codului ASCII al acestuia

1 post in this topic

Cerinta: Sa se scrie un program care preia in mod repetat de la consola un caracter si afiseaza codul sau ASCII. 

#include <stdio.h>
#include <stdlib.h>

int main(void)
	char n;
	int aux;
	printf("Introduceti un caracter: ");
	printf("\nCodul ascii pentru caracterul %c este %d\n\n",n,n);	


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this