Tags » General Stuffs

Must read

This is a very in-depth guide on what hashtables can be used in powershell, must read. I have some situations which I am considering hashtables such as storing the source, destination and service to one row of firewall rule, and concatenate the next firewall rule with the same properties. 9 more words

General Stuffs

[Tufin]How to send access request using REST API

The structure of the XML is not properly explained in SWAGGER, swagger is a build in helper to browse the API calls within Tufin SecureChange itself. 931 more words

General Stuffs

[c]Question and Exercise (Tossing chance)

The requirement is to ask user to input head or tail in the program and display the number of heads and tails and the probability in percentage. 213 more words

General Stuffs

[c]Questions and exercises

Question 1
A 2 minute telephone call to Lexington, Virginia costs $1.15. Each additional minute costs $0.50. Write a program that takes the total length of a call in minutes as input and calculates and displays the cost. 108 more words

General Stuffs

[c]Decimal to binary

#include <stdio.h>

int main()
{
    /*
    Find the binary of decimal. Example: if 4.
    Find the remainder of a number divider by 2.
    4%2 = 0 >> 1st index. 58 more words
General Stuffs

[c]Extension of previous triangle pattern with numbers

Get a mirror image of the pattern on previous post.
This exercise is the same as previous, just print the columns..

here’s the code:

#include <stdio.h>

int main()
{
    int num,rows,cols;
    printf("Enter the rows:");
    scanf("%d",&num);
    
    for(rows=1;rows<=num;rows++)
    {
        for(cols=1;cols=1;rows--)
    {
        for(cols=1;cols<=rows;cols++)
        {
               printf("%d",cols);
            
        }
        printf("\n");
    }
    
    return 0;
}
… 9 more words
General Stuffs

[c]Nested for loop exercise.

This is a good lesson which trains my logic…

See the lessons here: https://codeforwin.org/2015/07/right-triangle-star-pattern-program-in-c.html

See sample codes:

#include <stdio.h>

int main()
{
    int num,rows,cols;
    printf("Enter the rows:");
    scanf("%d",&num);
    
    for(rows=1;rows<=num;rows++)
    {
        for(cols=1;cols<=rows;cols++)
        {
                printf("%d",cols);
        }
        
        printf("\n");
    }
    return 0;
} 94 more words
General Stuffs