Skip to content

Instantly share code, notes, and snippets.

@vietbuiminh
Last active August 29, 2015 14:25
Show Gist options
  • Save vietbuiminh/92f64858b553df0931ed to your computer and use it in GitHub Desktop.
Save vietbuiminh/92f64858b553df0931ed to your computer and use it in GitHub Desktop.
public class Hello World {
public static void main(String[] args){
System.out.println("Hello, World");
}
}
#include <stdio.h>
int main() {
int number[10];
/*populate the array*/
number[0] = 10;
number[1] = 20;
number[2] = 30;
number[3] = 40;
number[4] = 50;
number[5] = 60;
number[6] = 70;
/*print the 7 th number from the array, which has an index of 6*/
prinf(The 7th number is the array is %d, number[6]);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment