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
/* Descomposició horària. */ | |
#include <iostream> | |
using namespace std; | |
int main() { | |
int n; // Declaració de la variable d'entrada | |
cin >> n; // Lectura de l'entrada | |
int h = n / 3600; // Càlcul del nombre d'hores | |
int m = (n % 3600) / 60; // Càlcul del nombre de minuts |
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
// Hello world | |
#include <iostream> | |
using namespace std; | |
int main() { | |
cout << "Bon dia a tothom" << endl; | |
} |
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
mod1 = (w, x, y) -> | |
name: "mod1" | |
call: "mod1 #{w} #{x} #{y}" | |
ports: | |
in: | |
type: 'input' | |
width: w | |
out: | |
type: 'output' |
NewerOlder