write a c program which reads an integer value from the keyboard then it displays the number in words?
#include<stdio.h>
#include<conio.h>
void main(void)
{
int rev,n,
clrscr();
printf("\n enter any number");
scanf("%d",&n);
temp=n;
while(n>0)
{
rem=temp%10;
rev+=rem*10;
temp=temp/10;
choice=rev%10;
switch(choice)
{
case 1:
printf("one");
break;
case 2:
printf("two");
break;
case 3:
printf("three");
break;
case 4:
printf("four");
break;
case 5:
print("five");
break;
case 6:
printf("six");
break;
case 7:
printf("seven");
break:
case 8:
printf("eight");
break:
case 9:
printf("nine");
}
getch();
}
use "\n" between the words where you want a new line
yyu5uty
You write it exactly the same as you would write it in any other verions of C++, by taking user input to determine the three sides of your triangle. In other words, input three real numbers. What you do with those three numbers is entirely up to you, but presumably you'd want to calculate the angles of a triangle given the length of its three sides. For that you would need to use the cosine rule which states that for any triangle with angles A, B and C whose opposing sides are a, b and c respectively, cos A = (b2 + c2 - a2)/2bc and cos B = (c2 + a2 - b2)/2ca. Knowing two angles, A and B, you can easily work out that angle C must be 180 - (A + B).
Numbers, pictures and words
Flip the paper over otherwise you might need a special printer
Write it in your own words on paper or print it
write 1,067,350.00 in words
You do not write numbers in exponent for in words.
write the following decimal numbers in words .0087945
Create an array like so $numbers = array(); $numbers['0'] = "ZERO"; $numbers['1'] = "ONE"; and so on.. till you decide that's enough then to print it, echo the array with the desired key like so.. Example I print 5 in words echo $numbers['5']; which would print FIVE Good luck
Usually numbers. Unless you are young, writing it in words can be tedious!
in words ninety in numbers 90
It is five hundredths.
778.5 in words
You write in the numbers in words when you write in expanded.
In ordinary writing, the numbers one through ten are written as words. Higher numbers are written as numbers.A sentence should not start with a numeral, so write out the number (or reword the sentence).
Yes.