Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Complete IIT AIEEE ICSE ISC PMT help forum

Complete help forum for students preparing for icse iit aieee cbse pmt and other related exams.Stay updated about all 2011 exams.
 
HomeHome  PortalPortal  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  India NewsIndia News  
Keywords
CASE question SELECT 2004 2009 2006 graph YEAR prelim CLASS 2010 paper UNION 2007 computer ICSE RESULT physics science papers
Latest topics
» Nitration of aniline - IIT JEE 2018 Advanced - solved
Algorithm to display a 3 digit number in words [ISC] EmptyFri Jun 08, 2018 2:34 am by adianadiadi

» Diamagnetic - Paramagnetic - Ni(CO)4, [Ni(CN)4]2- and [NiCl4
Algorithm to display a 3 digit number in words [ISC] EmptyFri Apr 06, 2018 1:05 am by adianadiadi

» IIT JEE chemistry solved interactive question paper
Algorithm to display a 3 digit number in words [ISC] EmptySun Oct 29, 2017 12:11 pm by adianadiadi

» IIT JEE 2015 SOLVED QUESTION PAPER
Algorithm to display a 3 digit number in words [ISC] EmptyWed Oct 19, 2016 1:44 pm by adianadiadi

» IIT JEE chemistry solved questions
Algorithm to display a 3 digit number in words [ISC] EmptySat Jul 18, 2015 6:15 pm by adianadiadi

» General Description of Chinese Market for Foaming Agent ADC
Algorithm to display a 3 digit number in words [ISC] EmptyFri May 09, 2014 2:09 pm by happybaicaitou

» How to get Lowest Cost MBBS Admission?
Algorithm to display a 3 digit number in words [ISC] EmptyMon Feb 24, 2014 6:39 pm by MENTOR 2014

»  girl boy vashikaran specialist agori baba ji +91-9461165
Algorithm to display a 3 digit number in words [ISC] EmptyTue Jan 21, 2014 6:00 pm by krshastri

»  STRONG LOST LOVE SPELL +91-9461165176
Algorithm to display a 3 digit number in words [ISC] EmptyTue Jan 21, 2014 6:00 pm by krshastri

Top posters
abhas
Algorithm to display a 3 digit number in words [ISC] Vote_lcapAlgorithm to display a 3 digit number in words [ISC] Voting_barAlgorithm to display a 3 digit number in words [ISC] Vote_rcap 
Anu..i luv icse...:)
Algorithm to display a 3 digit number in words [ISC] Vote_lcapAlgorithm to display a 3 digit number in words [ISC] Voting_barAlgorithm to display a 3 digit number in words [ISC] Vote_rcap 
G-7
Algorithm to display a 3 digit number in words [ISC] Vote_lcapAlgorithm to display a 3 digit number in words [ISC] Voting_barAlgorithm to display a 3 digit number in words [ISC] Vote_rcap 
siya
Algorithm to display a 3 digit number in words [ISC] Vote_lcapAlgorithm to display a 3 digit number in words [ISC] Voting_barAlgorithm to display a 3 digit number in words [ISC] Vote_rcap 
Candy
Algorithm to display a 3 digit number in words [ISC] Vote_lcapAlgorithm to display a 3 digit number in words [ISC] Voting_barAlgorithm to display a 3 digit number in words [ISC] Vote_rcap 
jOhNy
Algorithm to display a 3 digit number in words [ISC] Vote_lcapAlgorithm to display a 3 digit number in words [ISC] Voting_barAlgorithm to display a 3 digit number in words [ISC] Vote_rcap 
Apurva
Algorithm to display a 3 digit number in words [ISC] Vote_lcapAlgorithm to display a 3 digit number in words [ISC] Voting_barAlgorithm to display a 3 digit number in words [ISC] Vote_rcap 
WinRrule
Algorithm to display a 3 digit number in words [ISC] Vote_lcapAlgorithm to display a 3 digit number in words [ISC] Voting_barAlgorithm to display a 3 digit number in words [ISC] Vote_rcap 
ambili
Algorithm to display a 3 digit number in words [ISC] Vote_lcapAlgorithm to display a 3 digit number in words [ISC] Voting_barAlgorithm to display a 3 digit number in words [ISC] Vote_rcap 
saif
Algorithm to display a 3 digit number in words [ISC] Vote_lcapAlgorithm to display a 3 digit number in words [ISC] Voting_barAlgorithm to display a 3 digit number in words [ISC] Vote_rcap 



Search if you can't find it here

Algorithm to display a 3 digit number in words [ISC]

View previous topic View next topic Go down
AuthorMessage
abhas
Active member
Active member
abhas


Algorithm to display a 3 digit number in words [ISC] Vide
PostSubject: Algorithm to display a 3 digit number in words [ISC] Algorithm to display a 3 digit number in words [ISC] EmptyWed Nov 25, 2009 7:47 pm

Algorithm





  • Start.
  • Enter
    a number, of maximum three digits. (n ß
    Input from user)
  • Calculate
    the length of ‘n’.
  • If the
    length is more than three, goto step 5, otherwise goto step 6.
  • Print
    message “"Wrong input only three digit number allowed". Goto
    step 27.
  • Check that wherther the number is greater
    or less than zero.
  • If it
    is greater than zero, print “Positive”, otherwise print “Negative”.
  • Change
    the number ‘n’ to positive by calculating its absolute value and assigning
    it again to ‘n’.
  • Define
    an array “af” containing twenty words from “zero” to “nineteen”.
  • Define
    an array “as” containing nine elements with first elements as null
    character and rest of the elements as multiples of ten from Twenty to
    Ninety.
  • Check
    if the number is less than twenty, if yes goto step 16.
  • Check
    if number is equal to twenty, if yes goto step 17.
  • Check
    if number is less than hundred, if
    yes goto step18
  • Check
    if number is equal to hundred, if yes goto step 21.
  • Otherwise
    goto step 22.
  • Print
    nth index of array “af”. Goto step 27.
  • Print
    “Twenty”. Goto step 27.
  • Extract
    last digit of “n” and store it in integer type variable
    “x”.
  • Divide
    n by 10 and store it in integer type variable y.
  • Print
    y-1 th index of as followed by space and x th index if af. Goto step 27.
  • Print
    “Hundred”. Goto step 27.
  • Extract
    last digit of n and store it in
    integer type variable ‘x’.
  • Divide
    n by 10 and store it in integer type variable ‘y’.
  • Extract
    last digit of y and store it in variable ‘z’.
  • Divide
    y by 10 and store it in variable ‘p’.
  • Print
    p th index of af followed by “hundred” followed by z-1 th index of as followed by x th
    index of af. Goto step 27.
  • Stop.
Back to top Go down

Algorithm to display a 3 digit number in words [ISC]

View previous topic View next topic Back to top
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Complete IIT AIEEE ICSE ISC PMT help forum :: ISC :: ISC 2010 [Class xii] :: Computer-