Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- char paper();
- ////////////////////////////////////////////////////
- int main() //
- {
- for(int i = 0; i < 13; i++)
- {
- printf("%c", paper() );
- }
- }
- /////////////////////////////////////////////////////
- char paper() //
- {
- static int i = 0;
- char sz[40] = "SONY Pictures";
- return sz[i++];
- }
- /*
- #include <stdio.h>
- int n = 4 ;
- float f = 1.9999999;
- ////////////////////////////////////////////////////
- int main() //
- {
- int nRes = n + (int)f;
- printf("%d \n", nRes);
- n = (int)f;
- }
- */
- /*
- #include <stdio.h>
- #include <iostream>
- using namespace std;
- int max( int n1, int n2);
- float max(float f1, float f2);
- //////////////////////////////////////////////////// (char(*)( ) )
- int main() // (int(*)(int))
- {
- cout << max(73 , 21 ) << endl;
- cout << max( 1.77, 3.55 );
- }
- //////////////////////////////////////////////
- int max(int n1, int n2) //
- {
- if(n1 > n2) return n1;
- return n2;
- }
- //////////////////////////////////////////////
- float max(float f1, float f2) //
- {
- if(f1 > f2) return f1;
- return f2;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement