Search:

Type: Posts; User: YaZao

Search: Search took 0.01 seconds.

  1. Thread: Floor and ceil

    by YaZao
    Replies
    3
    Views
    1,163

    Floor and ceil

    #include <stdio.h>
    #include <conio.h>
    #include <stdlib.h>
    #include <ctype.h>
    #include <string.h>
    #include <math.h>


    int main() {
  2. Replies
    8
    Views
    1,278

    Ohh so I see, I should make it bigger then XDDD...

    Ohh so I see, I should make it bigger then XDDD Ahahaa, oh yeah. I should also think of something like that when using scanf. Thanks! :-D
  3. Replies
    8
    Views
    1,278

    Oh yeah, now it works Lol. Why bad? I don't get...

    Oh yeah, now it works Lol. Why bad? I don't get it.
  4. Replies
    8
    Views
    1,278

    A simple program again!

    int main() {


    char password[20];
    int i = 0, tru1, tru2, tru3;


    printf("Enter your password (Must have 1 uppercase, lowercase and and a digit!): \n");
    scanf(" %s", password);
  5. Replies
    4
    Views
    1,401

    Oh nevermind the problem is the variables...

    Oh nevermind the problem is the variables amountOfChicken and other ........s like that it should be :


    int amountOfChicken = 0;

    I should assign them the value 0 XD okay my bad as newbie.
  6. Replies
    4
    Views
    1,401

    #include #include int...

    #include <stdio.h>
    #include <stdlib.h>


    int main ()
    {
    int chicken = 5; int amountOfChicken;
    int fish = 3; int amountOfFish;
    int eggs = 1; int amountOfEggs;
    int fries = 4;...
  7. Replies
    4
    Views
    1,401

    So I'm trying to make menu using do - while

    #include <stdio.h>
    #include <stdlib.h>


    int main ()
    {
    int chicken = 5; int amountOfChicken;
    int fish = 3; int amountOfFish;
    int eggs = 1; int amountOfEggs;
    int fries = 4;...
  8. Thanks that helped bro! Alright new thread XD

    Thanks that helped bro! Alright new thread XD
  9. So amount * 2 is just multiplying the variable...

    So amount * 2 is just multiplying the variable right? Or no? I jsut dont get it.
  10. So another simple program just help me with this logic

    #include <stdio.h>


    int main ()
    {
    int day = 1;
    float amount = .01;


    while (day <= 31){
  11. Replies
    4
    Views
    2,914

    Ohh I just noticed why did you put another...

    Ohh I just noticed why did you put another variable there? I could just use number_of_stars if it's equal to 'i' anyway? or if I used number_of_stars to be scanned?
  12. Replies
    4
    Views
    2,914

    Thank you guys. Love you all

    Thank you guys. Love you all <3
  13. Replies
    4
    Views
    2,914

    Another simple program using for loop

    #include <stdio.h>
    #include <stdlib.h>




    int main()
    {
    int space, row, stars, number_of_stars;
  14. Replies
    12
    Views
    2,302

    #include #include int main(){ float...

    #include #include int main(){ float totalProfit; int priceOfmalunggay; float tax; int totalMalunggay; printf("How many malunggay did you get?\n"); scanf("%d", &totalMalunggay); ...
  15. Replies
    12
    Views
    2,302

    What should I put? I changed tax to float still...

    What should I put? I changed tax to float still it wont work. :(
  16. Replies
    12
    Views
    2,302

    Just a simple program just confused

    #include <stdio.h>
    #include <stdlib.h>


    int main()
    {
    float totalProfit;
    int priceOfmalunggay;
    int tax;
    int totalMalunggay;
  17. Replies
    3
    Views
    2,119

    Oh yeah Now I see. :)) Thanks. But it still...

    Oh yeah Now I see. :)) Thanks. But it still crashes damn. Can you recommend me a good compiler? I'm using Dev C++ since it is somewhat useful I can use C++ and C language in one program.

    Yeah I...
  18. Replies
    7
    Views
    1,471

    Try typing getchar(); in oneline

    Try typing getchar(); in oneline
  19. Replies
    3
    Views
    2,119

    My calculator in Dividing seems wrong I think

    #include <stdio.h>


    int main () {
    char a;
    printf("Enter 'M' for Multiplication 'D' for Division and 'A' for Addition and 'S' for Subtraction: ");
    scanf("%c", &a);
    int num1,...
Results 1 to 19 of 19