1 solutions
-
0
C++ :
#include<bits/stdc++.h> using namespace std; int a,b; int main() { for(int i=1;i<100;i+=2) cout<<i<<endl; return 0; }Pascal :
var i:integer; begin for i:= 1 to 100 do if i mod 2=1 then writeln(i); end.Java :
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(System.in); int n=100; int i; for (i = 1; i <= n; i++) if (i % 2 != 0) { System.out.println(i); } } }
- 1
Information
- ID
- 17516
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By