This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* b | |
*/ | |
#include <stdio.h> | |
int main ( void ) | |
{ | |
float R; // height (altura) | |
float pi; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* c | |
*/ | |
#include <stdio.h> | |
int main ( void ) | |
{ | |
int a; | |
int b; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* d | |
* Simple Product | |
*/ | |
#include <stdio.h> | |
int main ( void ) | |
{ | |
int a; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* e | |
* Average 1 | |
*/ | |
#include <stdio.h> | |
int main ( void ) | |
{ | |
float a; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* f | |
* Average 2 | |
*/ | |
#include <stdio.h> | |
int main ( void ) | |
{ | |
float a; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* g | |
* Difference | |
*/ | |
#include <stdio.h> | |
int main ( void ) | |
{ | |
int a; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* h | |
* Salary | |
*/ | |
#include <stdio.h> | |
int main ( void ) | |
{ | |
int number; // employee's number |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* t | |
*/ | |
#include <stdio.h> | |
int main() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* q-04.c | |
*/ | |
#include <stdio.h> | |
int main ( void ) | |
{ | |
int dia, mes, ano; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |