Find Jobs
Hire Freelancers

Write some Software

$10-30 USD

Lukket
Slået op over 7 år siden

$10-30 USD

Betales ved levering
#include<stdio.h> int main() { printf("This program creates a magic sqaure of a specified size.\n"); printf("The size must be an odd number between 1 and 99.\n"); int n; printf("Enter size of magic square: "); scanf("%d", &n); int magic[99][99]; int start = (n / 2); // The middle column int max = n * n; magic[0][start] = 1; int row; int col; int next_row; int next_col; int i; for (i = 2, row = 0, col = start; i < max + 1; i++) { if ((row - 1) < 0) { // If going up one will leave the top next_row = n - 1; // Go to the bottom row } else { next_row = row - 1; } // Otherwise go up one printf("In row: %d\n", row); if ((col + 1) > (n - 1)) { // If column will leave the side next_col = 0; // Wrap to first column printf("Column will leave side\n"); } else { next_col = col + 1; } // Otherwise go over one printf("In col: %d\n", col); if (magic[next_row][next_col] > 0) { // If that position is taken if (row > (n - 1)) { // If going to row below leaves bottom next_row = 0; // Go back to the top } else { next_row = row + 1; // Go to the row below next_col = col; // But stay in same column } } row = next_row; col = next_col; printf("About to put %d in row %d, col %d\n", i, row, col); magic[row][col] = i; // Put the current value in that position } // Now let's print the array int j; for (i = 0; i < n; i++) { for (j = 0; j < n; j++) { printf("%4d", magic[i][j]); } printf("\n"); } return 0; }
Projekt-ID: 11213739

Om projektet

9 forslag
Projekt på afstand
Aktiv 7 år siden

Leder du efter muligheder for at tjene penge?

Fordele ved budafgivning på Freelancer

Fastsæt dit budget og din tidsramme
Bliv betalt for dit arbejde
Oprids dit forslag
Det er gratis at skrive sig op og byde på jobs
9 freelancere byder i gennemsnit $22 USD på dette job
Brug Avatar.
A proposal has not yet been provided
$30 USD på 1 dag
5,0 (625 anmeldelser)
7,2
7,2
Brug Avatar.
Please share further details.
$30 USD på 1 dag
4,8 (58 anmeldelser)
5,8
5,8
Brug Avatar.
I'm a C and C++ developer and I'm used to work with ANSI code so the generated source code will run in every platform
$25 USD på 1 dag
5,0 (2 anmeldelser)
0,8
0,8
Brug Avatar.
I'm the kind to focus more on quality than quantity, I do not hesitate to take the time to improve on my work.
$15 USD på 1 dag
5,0 (1 bedømmelse)
0,6
0,6
Brug Avatar.
I am a full time freelancer and have no other job of any kind. I really want to build a serious career on this platform and its my start here so I can work for you upto 16 hours a day & 7 days a week, plus I have 24 hours electricity backup and a reliable fast internet connection. I have done Masters in Information Technology and a specialization in Web Design and Development. There is no issue of money as well you can pay little amount or can pay later if you have financial issue currently. Just Rate my work and give a Honest Review and it will be enough. +I have pretty good mastery in PHP and MySQL +JavaScript, jQuery and AngularJS +Specialized in Responsive Design and AJAX +Expert in WordPress, Joomla, Magento and Drupal +Have strong foundations in Laravel, CodeIgniter, Zend, Yii and CakePHP +HTML5 and CSS3 ***Pay ONLY IF you are 100% Completely Satisfied with work done. If you are not satisfied do not pay at all. Thanks for reading my proposal. Regards, Mubbarik Ali ____________ Recent Reviews of My Clients: “Very quick and accurate work, I was very happy with it :)” -Aidamediagroup (UK) Rating: 5/5 “Very professional Good Communication, timely delivery, quality work” -srayancejain from (US) Rating: 5/5 “mubbarikali was fantastic. He came through again on a quick timeline and continued to work making my document better.” -lou0187 (US) Rating: 5/5
$10 USD på 1 dag
5,0 (2 anmeldelser)
0,6
0,6
Brug Avatar.
A proposal has not yet been provided
$23 USD på 1 dag
0,0 (0 anmeldelser)
0,0
0,0

Om klienten

Flag for PAKISTAN
Talagang, Pakistan
0,0
0
Medlem siden jul. 5, 2016

Klientverificering

Andre jobs fra denne klient

game development
$10-30 USD
Tak! Vi har sendt dig en e-mail med et link, så du kan modtage din kredit.
Noget gik galt, da vi forsøgte at sende din mail. Prøv venligst igen.
Registrerede brugere Oprettede jobs i alt
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Indlæser forhåndsvisning
Geolokalisering er tilladt.
Din session er udløbet, og du er blevet logget ud. Log venligst ind igen.