Monday 19 May 2014

(CLASS 9) problems solved during april and may 2014

  • WAP to input a no and check wheather it is Buzz no or not.                  
  • WAP to input a no and check wheather it is Prime no or not.
  • WAP to input a no and check wheather it is Perfect no or not.
  • WAP to input a no and check wheather it is Palindrome no or not.
  • WAP to input a no and check wheather it is armstrong no or not.
  • WAP to input 20 nos and count total no of pos, neg and zeros.
  • WAP to input 20 nos and count total no of even, and odd.
  • WAP to input 20 nos and count total no divisible by both 5 and 7 and divisible by 5 or 7.
  • WAP to input 20 nos and calculate sum of  of even nos and product of odd nos
  • In the range of x and y count total no of even, and odd.
  • In the range of x and y count total no divisible by both 5 and 7 and divisible by 5 or 7
  • In the range of x and y count calculate sum of  of even nos and product of odd nos.
  • WAP to input a no and count total no of digits
  • WAP to input a no and count total no of even digits and odd digits
  • WAP to input a no and calculate sum of  of even digits and product of odd digits.
  • 1+9+25+49+81
  • 1/x+2/x2+3/x3.....upto n terms
  • print 0,1,1,2,3,5.....n terms
  • 1+1+2+3+5+8......sum of n terms

  •  WAP to input no of units consumed and calculate electricity bill
          First 100 Units                      Rs 5/unit
          Next 150 Units                     Rs 7/Unit
          Next 100 Units                     Rs 9/Unit
          Above that                           Rs 11/Unit


  • WAP to input MRP and calculate Discount.
         MRP<=500                                     5% of MRP
         MRP>500 and <=1000                   7% of MRP
         MRP>1000                                     9% of MRP


  • Input temperatures for the month of April and calculate the average temp of the month. 


No comments:

Post a Comment