Skip to content
Snippets Groups Projects
Commit de4e59a0 authored by Iwainsky, Christian's avatar Iwainsky, Christian
Browse files

added supllement code to the material section

parent c026023d
Branches
No related merge requests found
#include <stdio.h>
void aFunction(int argument1)
{
printf("Output %i\n",argument1);
}
int main(int argc, char ** argv)
{
aFunction(10);
return 0;
}
#include <iostream>
using namespace std;
class myClass {
public:
double toDouble(int k){
return (double)k;
}
};
void aFunction(int arg){
cout << "Output" << arg
<< endl;
}
int main(int c,char ** v){
aFunction(10);
return 0;
}
module arithmetic
public :: add
contains
subroutine add( a, b, result )
integer, intent( in ) :: a, b
integer, intent( out ) :: result
result = a + b
end subroutine add
end module arithmetic
subroutine aFunction(n)
integer, intent(in) :: n
print *, 'Some Output: ', n
end subroutine aFunction
program demo
call aFunction(10)
end program demo
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment