C > Beginners Lab Assignments
Converting Roman letter to number
Converting Roman letter to number #include
#include
#include
#include
void main() { clrscr(); int *a,l,i,j,k; char *s; printf("Enter The Roman Number "); scanf("%s",s); l=strlen(s); for(i=0;i
0;i--) { if(a[i]>a[i-1]) k=k-a[i-1]; else if(a[i]==a[i-1] || a[i]
C Codes
Beginners
C on Unix
Code Snippets
Data Structures
File Operations
Games Graphics
Gnu-Linux
Hardware
Mathematics
Miscellaneous
Small Programs
Sorting