Search:

Type: Posts; User: Azeem

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. laserlight...

    laserlight
    I dont want to use arrays in my program, I want alternative way.
  2. i is a range of number from 1 to 10 and rem is...

    i is a range of number from 1 to 10 and rem is remainder of entered digit. if statement compares whether i is equal to rem or not if i is equal to rem then count is incremented.
  3. Yes, I understand but instead of using count...

    Yes, I understand but instead of using count array can I use count variable and use it in a loop?
  4. I am storing the input in integer variable.

    I am storing the input in integer variable.
  5. The challange is not to use arrays. Use modulo...

    The challange is not to use arrays. Use modulo and division operation to calculate.
  6. Counting number of occurence of digits in a number

    I am writing a program in which user enter any value and the program calculates the occurence of any digit in a number. For example, if user enter 4323122 the output should like this

    3 is present...
  7. I have modified my code by using compound...

    I have modified my code by using compound termination condition


    #include<stdio.h>
    int main(void)
    {
    int a,b,i;
    for(i=1; i<=4; i++)
    {
    for(a=0; a<=0 ; ++a)
  8. #include int main(void) { int...

    #include<stdio.h>
    int main(void)
    {
    int a,b,i;
    for(i=1; i<=4; i++)
    {
    for(a=0; a<=0 ; ++a)
    {
    printf("%d",a);
  9. ok i tried for 2 variables but i am getting...

    ok i tried for 2 variables but i am getting another problem of printing alternate 0's and 1's :/
  10. Yeah ok I will try. :)

    Yeah ok I will try. :)
  11. Yeah it is mandatory to use 6 nested loop.

    Yeah it is mandatory to use 6 nested loop.
  12. I have to use 6 nested loops.

    I have to use 6 nested loops.
  13. I am having problem in choosing termination...

    I am having problem in choosing termination conditions for each nested for() loop.
  14. use 6 nested loops to generate the output & my...

    use 6 nested loops to generate the output & my code is incomplete right now. I am not getting how to proceed further.
  15. ok got it :)

    ok got it :)
  16. #include int main(void) { int...

    #include<stdio.h>
    int main(void)
    {
    int a,b,c,d,e,f,i;
    for(i=1; i<=64; i++)
    {
    for(a=0; a<=0; ++a)
    {
    printf("%d",a);
  17. The output Should be like this: 11931

    The output Should be like this:
    11931
  18. it is mandatory to use nested for() loop. I am...

    it is mandatory to use nested for() loop. I am not allowed to use any decimal to binary conversion.
  19. What are index variables?

    What are index variables?
  20. Matticus...

    Matticus



    #include<stdio.h>int main(void)
    {
    int a,b,c,d,e,f,i;
    for(i=1; i<=64; i++)
    {
    for(a=0; a<=0; ++a)
  21. In short we have to print Truth Table of 6 bit...

    In short we have to print Truth Table of 6 bit binary digits as truth table covers all possible combinations.
  22. i selected 6 variables for 6 bits and 1 variable...

    i selected 6 variables for 6 bits and 1 variable to control outer loop which initializes with 1 and terminates at 64. This outer loop is to generate rows.
  23. ok. variables should hold '0' & '1' as the...

    ok. variables should hold '0' & '1' as the program is for printing binary numbers. Possible combinations are 64 for 6 bit number. This means outer loop terminates at 64.
  24. Adak... the object of this question is to...

    Adak... the object of this question is to generate truth table using nested for() loop.
  25. i did a bit paper work. But didnt find any...

    i did a bit paper work. But didnt find any solution. I am facing problem in choosing termination condition for for() loop. I selected 6 variables for 6 bits.
Results 1 to 25 of 26
Page 1 of 2 1 2