answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

#include<math.h>

void main()

{

int r,d,t,code;

printf("enter your code 1 for rupees to dollar\n 2 for dollar to rupee");

scanf("%d",&code);

if(code==1)

{

printf("enter your amount");

scanf("%d",&r); d=r/(45);

printf("you have dollar %d",d);

}

elseif (code==2) { printf("enter your amount");

scanf("%d",&d); r=d*(45);

printf("you have rupees %d",r);

}

else printf("invalid code");

getch();

}

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the Algorithm to convert to RS to?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Algorithm to convert a number representing radix r1 to r2?

algorithm to convert a number representing radix r1 to radix r2


How do you create an algorithm to convert a persons weight from pounds to kilograms?

hisince1 pound = 0.45359237 kilogramssoweight_in_kilo = weight_in_pounds * 0.45359237


What is c plus plus program use to convert algorithm in to c plus plus program?

You can't convert an algorithm into code. That is the job of the programmer, not the language. Algorithm's are expressed in plain-English and typically use pseudocode to broadly demonstrate the implementation of the algorithm. However, it is the programmer's job to convert these algorithms into working code. Pseudocode isn't a programming language as such, but it uses structures and statements that are familiar to any programmer and can be easily translated into any language. However, pseudocode is not a standard so there are many different ways to present pseudocode to the programmer. Moreover, pseudocode is generalised and is far too generic to be converted directly into any one language, never mind C++, which can take advantage of the underlying hardware to produce more efficient algorithms than would otherwise be implied by the pseudocode alone. Hence the need for plain-English algorithms in conjunction with the pseudocode. Programmer's can process all this information far more easily than any computer can. Even if you could program a converter for one algorithm, there's no guarantee it would work for any other algorithm. The time spent programming an algorithm converter would be far better spent simply translating the algorithm yourself.


What is algorithm to write algorithm to the program to access a pointer variable in structure?

Here is the algorithm of the algorithm to write an algorithm to access a pointer in a variable. Algorithmically.name_of_the_structure dot name_of_the _field,eg:mystruct.pointerfield


Which algorithm is more efficient lamport bakery algorithm or black and white bakery algorithm?

Black and White bakery algorithm is more efficient.

Related questions

Algorithm to convert a number representing radix r1 to r2?

algorithm to convert a number representing radix r1 to radix r2


A boy saves Rs.1.50 daily what is the least number of days in which he will convert his saving into 20 Rupees notes?

First we shall convert Rs.1.50 &amp; Rs.20 into paisa = Rs.1.50 = 150 Paisa &amp; Rs.20 = 2000 Paisa Now, We shall find H.C.F. of 150 &amp; 2000 H.C.F. of 150 &amp; 2000 is 50 Therefore, the least number of days in which the boy will convert his saving into Rs.20 =&gt; 2000 divided by 50 is 40 days .


How do you convert 3g to 2g in bsnl?

by recharging with Rs 2/-


How do you convert bsnl 3g to 2g?

by recharging with Rs 2/-


How can you convert a simple algorithm to recursive algorithm?

Linear search(a,item) n=length(a) for i=1 to n do if(a[i]==item) then return i end for return -1


Convert in Indian currecy 0.079?

It's 3.16 RS only


20billion dollars convert to Indian rupees?

tht's one lakh crores Rs @ 50 rs to the dollar


Write an algorithm in c to convert an infix expression to a postfix expressionexecute your algorithm with the following infix expression as your input. m nk pgh a bc?

An algorithm can not be written with the following infix expression without knowing what the expression is. Once this information is included a person will be able to know how to write the algorithm.


How do you create an algorithm to convert a persons weight from pounds to kilograms?

hisince1 pound = 0.45359237 kilogramssoweight_in_kilo = weight_in_pounds * 0.45359237


What is the flowchart and algorithm of a program that will convert an inputted number in Fahrenheit to its equivalent measure in Celsius?

burat na flow chart


Develop an algorithm to display all prime numbers from 2 to 100 Give both the pseudocode version and the flowchart version Convert your pseudocode into a Java program?

Develop an algorithm to display all prime numbers from 2 to 100. Give both the pseudocode version and the flowchart version. Convert your pseudocode into a Java program.


What will be the price of a 15 meter long ribbon if the price of a 45 cm long ribbon is Rs 2?

Convert all measurements to the same units: 45cm = 0.45m In 15m there are 15/0.45 pieces each costing Rs 2. So, Cost = Rs 2 x 15 / 0.45 ~= Rs 66.67