Ctrl + V dump

  • (76 Pages)
  • +
  • « First
  • 74
  • 75
  • 76

1129 Replies - 73696 Views - Last Post: 30 January 2017 - 08:42 AM

#1126 ybadragon  Icon User is offline

  • Home Owner
  • member icon

Reputation: 571
  • View blog
  • Posts: 2,647
  • Joined: 11-May 12

Re: Ctrl + V dump

Posted 23 July 2015 - 01:19 PM

I tried to do my paste, but I had sensitive client data so that was a no-go....

#1127 gabehabe  Icon User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1430
  • View blog
  • Posts: 11,006
  • Joined: 06-February 08

Re: Ctrl + V dump

Posted 11 April 2016 - 04:24 PM

https://www.facebook...67899746&type=3

#1128 ybadragon  Icon User is offline

  • Home Owner
  • member icon

Reputation: 571
  • View blog
  • Posts: 2,647
  • Joined: 11-May 12

Re: Ctrl + V dump

Posted 12 April 2016 - 12:51 PM

SELECT * FROM Employee

SELECT C.Company_Code, C.Founder, COUNT(DISTINCT E.Lead_manager_Code), COUNT(DISTINCT E.Senior_Manager_Code),
COUNT(DISTINCT E.Manager_Code), COUNT(DISTINCT E.Employee_Code)
FROM Employee E
INNER JOIN Company C
ON E.Company_Code = C.Company_Code
GROUP BY C.Company_Code, C.Founder
ORDER BY C.Company_Code ASC

Ha, I was doing some sql competition on hackerrank.com

This post has been edited by ybadragon: 12 April 2016 - 12:52 PM


#1129 Nitewalkr  Icon User is offline

  • D.I.C Lover

Reputation: 149
  • View blog
  • Posts: 1,045
  • Joined: 17-November 10

Re: Ctrl + V dump

Posted 13 April 2016 - 03:43 PM

web assembly language

don't know why was I looking at it.

#1130 miaouing  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 28-January 17

Re: Ctrl + V dump

Posted 30 January 2017 - 08:42 AM

#include <stdio.h>

int main(void)
{
    int begin, n, sequence;
    int sum = 0;
    
    printf("Enter the number of terms: ");
    scanf("%d", &n);
    printf("Enter the first value you wish to sequence: ");
    scanf("%d", &begin);
    printf("Enter the last value you want to sequence: ");
    scanf("%d", &sequence);
    
    for (int i = 1; i <= sequence; i ++)
    {
        printf("\nSum of geometric sequence ");
        printf("%d", begin);
        printf("^(n+1)\n");
        sum = sum + sum_geo(n, begin);
        begin++;
    }
    printf("\n");
}

int sum_geo(int n, int begin)
{
    int term, sum = 0;
    for(int i = 1; i <= n; i++)
    {
        term = begin;
        printf("%d", begin);
        printf("^%d = ", i);
        for(int j = 1; j < i; j++)
            
            term = term * begin;
            sum = sum + term;
            printf("%d\n", sum);
        if (i < n)
        {
            printf("    +    \n");

        }
            }
    return sum;
}





Just trying to help a guy out in the C and C++ forum. No ideas as of yet.

Spoiler


  • (76 Pages)
  • +
  • « First
  • 74
  • 75
  • 76