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
| assert(getprop("ro.product.device") == "mako" || | |
| getprop("ro.build.product") == "mako"); | |
| ui_print("*"); | |
| ui_print("----------------------------------------------------"); | |
| ui_print("-] FirefoxOS for Nexus4 [-"); | |
| ui_print("-] Gecko module [-"); | |
| ui_print("-] (system) [-"); | |
| ui_print("-] Build September 30 [-"); | |
| ui_print("----------------------------------------------------"); |
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
| assert(getprop("ro.product.device") == "mako" || | |
| getprop("ro.build.product") == "mako"); | |
| ui_print(" "); | |
| ui_print("----------------------------------------------------"); | |
| ui_print("-] FirefoxOS for Nexus4 [-"); | |
| ui_print("-] Gaia module [-"); | |
| ui_print("-] Branch master [-"); | |
| ui_print("-] (UserInterface) [-"); | |
| ui_print("-] Release-mode [-"); | |
| ui_print("-] Build October 5 [-"); |
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
| #include<stdio.h> | |
| int arr[1001]; | |
| int main() | |
| { | |
| int i,ct=0,j; | |
| printf("Find Prime number 1-1000 \n\n"); | |
| for(i=2;i<=1000;i++) | |
| { | |
| if(arr[i]==0) | |
| { |
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
| /// Use C++ to avoid I/O bug :) | |
| #include<iostream> | |
| #include<string> | |
| using namespace std; | |
| class student | |
| { | |
| public: | |
| int id,mid,fina; | |
| string name; |
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
| #include<stdio.h> | |
| int add(int m,int n){ | |
| int u; | |
| u=m+n; | |
| return u; | |
| } | |
| int main() | |
| { | |
| int a,b,c; | |
| b=5; |
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
| #include<stdio.h> | |
| int f(int x) | |
| { | |
| if(x>1) | |
| return f(x-1)+(x*2); | |
| else | |
| return 1; | |
| } | |
| 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
| #include<stdio.h> | |
| struct student | |
| { | |
| int id; | |
| float grade; | |
| }; | |
| int main() | |
| { | |
| struct student stu[3]; | |
| stu[0].id=111; |
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
| #include<stdio.h> | |
| #include<stdlib.h> | |
| int main() | |
| { | |
| int* ptr; | |
| int i,n; | |
| printf("Enter Round : "); | |
| scanf("%d",&n); | |
| ptr=(int*)malloc(sizeof(int)*n); | |
| for(i=0;i<n;i++){ |
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
| #include<iostream> | |
| using namespace std; | |
| int abs(int n) | |
| { | |
| if(n>=0) | |
| return n; | |
| else | |
| return -n; | |
| } | |
| 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
| #include<iostream> | |
| #include<algorithm> | |
| #include<map> | |
| #include<climits> | |
| using namespace std; | |
| int main() | |
| { | |
| map<int,int> mul; | |
| int i,n,u; | |
| cin >> n; |