小编Ron*_*ald的帖子

Cannot execute the else statement it gives out an error

** I wanted to print each integer (n) between b and c such that if n>9 else statement executes and prints out each integers in the form of even or odd.The if statements executes if the following condition of the variables of c and b are true.So there is no problem if i input c and b both <9.
**

#include <iostream>
#include <cstdio>
using namespace std;

int main() {

      int b;
      int c;

      string x[9] = {"one","two","three","four","five","six","seven","eight","nine"};

      cin >> …
Run Code Online (Sandbox Code Playgroud)

c++ if-statement

1
推荐指数
1
解决办法
41
查看次数

标签 统计

c++ ×1

if-statement ×1