Submitted Questions

  • C program to find a two digit no.

    Write a c program to find a two digit no.. the second digit of which is smaller than its first digit by four and the number was divided by the digits sum, the quotient would be 7.

    DIVINE FREEDA JOSHUA

    • Jun 14th, 2012

    The answer is 84The second digit 4 is smaller than the first digit by 4sum of the digits is 1284/12=7

  • Generate no.between 32 to 99

    Consider the following number 45*45=2025 and 20+25=45. Write a program to generate no.between 32 to 99 that satisfy the above problem.

    gyanendra verma

    • Aug 20th, 2017

    "c #include void main() { int n1,n2,i,temp,b,j,c,check,count=0,a[4]; clrscr(); printf("enter starting number: "); scanf("%d",&n1); //n1=32 printf("enter ending number: "); ...

    anonymous

    • Apr 5th, 2017

    Basically the same, but in node :)

    Code
    1. var desired = [];
    2. for(var i = 32; i <= 99; i++) {
    3.  
    4.   var value = i * i;
    5.   var split1 = parseInt(value / 100);
    6.   var split0 = value % 100;
    7.   if(split1 + split0 == i) {
    8.     desired.push(i);
    9.   }
    10. }
    11.  
    12. console.log("Desired values: " + desired);

  • write a program to find no. of cats

    a no. of cats got together and decided to kill between them 99919 mice. every cat kills equal no. of mice. write a program to find no. of cats