Answers for "run cmd command c++"

C++
2

run cmd command c++

#include <iostream>
using namespace std;

int main() {
    system("DATE");
    return 0;
}
Posted by: Guest on January-24-2020
0

run cmd command c++

#include <iostream>
using namespace std;

int main() {
	
	int age = 18;
	if (age >14) {
		if (age >=18) {
			cout << " Adult";
		}
		else { 
		cout << "teeneger";
		}
	} else {
		if (age >0) {
			cout <<"child";
		}
		else {
			cout << "something wrong";
		}
	}
	return 0;
}
Posted by: Guest on October-19-2021

Browse Popular Code Answers by Language