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
for(int i = 0; i < 50; i++ ){ | |
int lower = 1000*i + 1; | |
int higher = 1000*(i+1); | |
} |
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 <iomanip> | |
#include <string> | |
#include <fstream> | |
#include <cmath> | |
using namespace std; | |
bool isPrime (long n); | |
long primeCount (long x, long y); |
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 <iomanip> | |
#include <string> | |
#include <fstream> | |
#include <cmath> | |
using namespace std; | |
int main(void) | |
{ |
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
import java.util.Scanner; | |
import java.lang.String; | |
import java.io.*; | |
public class Main { | |
public static void main(String[] args) { | |
System.out.printf("Please enter a sentence \n"); | |
Scanner keyboard = new Scanner(System.in); |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package lab; | |
import java.util.Scanner; | |
import java.lang.String; | |
import java.io.*; |
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
import java.util.Scanner; | |
import java.lang.String; | |
import java.io.*; | |
public class Main { | |
public static void main(String[] args) { | |
System.out.printf("Please enter a sentence \n"); | |
Scanner keyboard = new Scanner(System.in); | |
String str = keyboard.nextLine(); |
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
import java.util.Scanner; | |
import java.lang.String; | |
import java.io.*; | |
class Lab5_1{ | |
public static void main (String[] args) | |
{ | |
System.out.printf("Please enter a sentence \n"); | |
Scanner keyboard = new Scanner(System.in); | |
String str = keyboard.nextLine(); |
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
void DrawProgressBar(int len, double percent) { | |
cout << "\x1B[2K"; // Erase the entire current line. | |
cout << "\x1B[0E"; // Move to the beginning of the current line. | |
string progress; | |
for (int i = 0; i < len; ++i) { | |
if (i < static_cast<int>(len * percent)) { | |
progress += "="; | |
} else { | |
progress += " "; | |
} |
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 |
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
/** | |
@file main.c | |
@brief | |
@version | |
@mainpage | |
@helper John Bourgeoias | |
@helper Jane Doe | |
@section intro Code Overview |