Translate

Showing posts with label loop. Show all posts
Showing posts with label loop. Show all posts

Uses A Simple While Loop With compound-statement Syntax For Variable Names

#include <iostream>
using namespace std;
int main() {
int x, y;
// Get number from the keyboard and initialize x.
cout << "Enter a number and press ENTER: ";
cin >> y;
x = 1;