Search:

Type: Posts; User: kelvin2355

Search: Search took 0.01 seconds.

  1. YEA i'm pretty sure that what i have to do but at...

    YEA i'm pretty sure that what i have to do but at increment of 2 i think.


    When user enters a number, check if it is even or odd using mod operator, if it is even then add one to the number. ...
  2. ----* ---*** --***** -******* *********...

    ----*
    ---***
    --*****
    -*******
    *********
    -*******
    --*****
    ---***
    ----*
    that is sample kind of code that i wanted to print out...without dotted line
  3. the first part is like a pyramid and the second...

    the first part is like a pyramid and the second part is pyramid but upside down.
    Should i use a mod operator to test for even or odd first cuz isn't pyramid pgm will only work for odd numbers.. oh...
  4. thanks i think i figured it out :)

    thanks i think i figured it out :)
  5. On the output screen, print a diamond of stars, for loop c++ help?

    #include<iostream>
    using namespace std;
    int main(void)
    {//declaration of variables

    int num; //value of first integer
    int count; //value of second integer
    cout<<"Please enter an integer...
  6. bubble sort array in acending and descending order

    #include<iostream>
    using namespace std;
    int main(void)
    {//declaration of variables
    int i;
    int num[10];
    int temp;


    for (i=0; i<=9; i++)
Results 1 to 6 of 6