Search found 3 matches

by nayyer kazmi
Thu Sep 23, 2004 10:43 am
Forum: Volume 3 (300-399)
Topic: 344 - Roman Digititis
Replies: 15
Views: 6611

Re: Roman digits

#include<iostream.h>
void main(void)
{

int i=0,v=0,x=0,l=0,c=0,num,temp;


cout<<"Enter any decimal number";
cin>>num;
for(int n=1;n<=num;n++)
{
temp=n;

c+=temp/100;
temp=temp%100;
c+=temp/90;
x+=temp/90;
temp=temp%90;
l+=temp/50;
temp=temp%50;
l+=temp/40;
x+=temp/40;
temp=temp ...
by nayyer kazmi
Thu Sep 23, 2004 10:41 am
Forum: Volume 3 (300-399)
Topic: 344 - Roman Digititis
Replies: 15
Views: 6611

Nayyer

#include<iostream.h>
void main(void)
{

int i=0,v=0,x=0,l=0,c=0,num,temp;


cout<<"Enter any decimal number";
cin>>num;
for(int n=1;n<=num;n++)
{
temp=n;

c+=temp/100;
temp=temp%100;
c+=temp/90;
x+=temp/90;
temp=temp%90;
l+=temp/50;
temp=temp%50;
l+=temp/40;
x+=temp/40;
temp=temp ...
by nayyer kazmi
Thu Sep 23, 2004 10:14 am
Forum: Volume 3 (300-399)
Topic: 344 - Roman Digititis
Replies: 15
Views: 6611

Roman digits

#include<iostream.h>
void main(void)
{

int i=0,v=0,x=0,l=0,c=0,num,temp;


cout<<"Enter any decimal number";
cin>>num;
for(int n=1;n<=num;n++)
{
temp=n;

c+=temp/100;
temp=temp%100;
c+=temp/90;
x+=temp/90;
temp=temp%90;
l+=temp/50;
temp=temp%50;
l+=temp/40;
x+=temp/40;
temp=temp ...

Go to advanced search