Skip to content

Instantly share code, notes, and snippets.

View gabrielcesar's full-sized avatar
🐍

Gabriel Cesar gabrielcesar

🐍
View GitHub Profile
@gabrielcesar
gabrielcesar / b.c
Last active July 21, 2016 14:26
b) Area of a circle
/*
* b
*/
#include <stdio.h>
int main ( void )
{
float R; // height (altura)
float pi;
@gabrielcesar
gabrielcesar / c.c
Created July 21, 2016 14:27
c) Simple sum
/*
* c
*/
#include <stdio.h>
int main ( void )
{
int a;
int b;
@gabrielcesar
gabrielcesar / d.c
Created July 21, 2016 14:28
d) Simple product
/*
* d
* Simple Product
*/
#include <stdio.h>
int main ( void )
{
int a;
@gabrielcesar
gabrielcesar / e.c
Created July 21, 2016 14:32
e) Average 1
/*
* e
* Average 1
*/
#include <stdio.h>
int main ( void )
{
float a;
@gabrielcesar
gabrielcesar / f.c
Created July 21, 2016 14:36
f) Average 2
/*
* f
* Average 2
*/
#include <stdio.h>
int main ( void )
{
float a;
@gabrielcesar
gabrielcesar / g.c
Created July 21, 2016 14:37
g) Difference
/*
* g
* Difference
*/
#include <stdio.h>
int main ( void )
{
int a;
@gabrielcesar
gabrielcesar / h.c
Created July 21, 2016 14:37
h) Salary
/*
* h
* Salary
*/
#include <stdio.h>
int main ( void )
{
int number; // employee's number
@gabrielcesar
gabrielcesar / t.c
Created July 21, 2016 14:41
t) Bancknotes and coins
/*
* t
*/
#include <stdio.h>
int main()
{
/*
* q-04.c
*/
#include <stdio.h>
int main ( void )
{
int dia, mes, ano;
#!/usr/bin/python
import math
x = int ( input ( 'Número de múltiplos: ' ))
y = int ( input ( 'Valor a ser multiplicado: ' ))
a = x * y
c = 0
while ( c < a ): # numero de multiplos