GithubHelp home page GithubHelp logo

alx-low_level_programming's People

Contributors

brightdaniel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alx-low_level_programming's Issues

Lowercase

include<stdio.h>

int main() {
char ch;

printf("\nEnter The Character : ");
scanf("%c", &ch);

if (ch >= 'A' && ch <= 'Z') {
printf("Character is uppercase Letters");
} else if (ch >= 'a' && ch <= 'z') {
printf("Character is Not Lowercase Letters");
} else {
printf("Non alphabet character");
}

return(0);
}

Alphabet 10

#include <stdio.h>
int main(void)

{
char ch = 'a';
while(ch<= 'z')
{
Printf ( '%c', ch)
ch++;
}
return 0;
}

Is alpha

#include <stdio.h>
#include <ctype.h>
int main()
{
char c;
c = 'Q';
printf("\nResult when uppercase alphabet is passed: %d", isalpha(c));

c = 'q';
printf("\nResult when lowercase alphabet is passed: %d", isalpha(c));

c='+';
printf("\nResult when non-alphabetic character is passed: %d", isalpha(c));

return 0;

}

0x07-pointers_arrays_strings

julien@ubuntu:~/0x07$ cat 0-main.c
#include "main.h"
#include <stdio.h>

/**

  • simple_print_buffer - prints buffer in hexa

  • @buffer: the address of memory to print

  • @SiZe: the size of the memory to print

  • Return: Nothing.
    */
    void simple_print_buffer(char *buffer, unsigned int size)
    {
    unsigned int i;

     i = 0;
     while (i < size)
     {
             if (i % 10)
             {
                     printf(" ");
             }
             if (!(i % 10) && i)
             {
                     printf("\n");
             }
             printf("0x%02x", buffer[i]);
             i++;
     }
     printf("\n");
    

}

/**

  • main - check the code

  • Return: Always 0.
    */
    int main(void)
    {
    char buffer[98] = {0x00};

    simple_print_buffer(buffer, 98);
    _memset(buffer, 0x01, 95);
    printf("-------------------------------------------------\n");
    simple_print_buffer(buffer, 98);
    return (0);
    }
    julien@ubuntu:/0x07$ gcc -Wall -pedantic -Werror -Wextra -std=gnu89 0-main.c 0-memset.c -o 0-memset
    julien@ubuntu:
    /0x07$ ./0-memset
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00


0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
0x01 0x01 0x01 0x01 0x01 0x00 0x00 0x00
julien@ubuntu:~/0x07$

Putchar

#include "holberton.h"
/**

  • main - Entry point

  • Return: Always 0 (Success)
    */
    int main(void)
    {
    char *sh = "Holberton";

    while (*sh)
    {
    _putchar(*sh);
    sh++;
    }
    _putchar('\n');

    return (0);
    }

Alphabet

int main(void)
{
print_alphabet();
return (0);
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.