0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[例題の為の例題]入力1,2,3,4を整数1234にせよ!!!(オンラインコンパイラ)

Posted at

いろいろ注意

  • (魔法の言葉)過去ログを見よ!!!

プログラム

  • オンラインコンパイラ

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    
    int t[4];
    
    t[0] = 1;
    t[1] = 2;
    t[2] = 3;
    t[3] = 4;
    
    int a;
    int g = 0;
    for(int i=0;i<4;i++){
       a = t[i];
       g = g * 10;
       g = g + a;
    }  //for 
    
    printf("%d\n",g);
    
}  //main




1234

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?