1 solutions

  • 0
    @ 2025-3-3 16:31:22

    C :

    #include<stdio.h>
    int main()
    {
    	int i;
    	for(i=100;i>=1;i--)
    	{
    		printf("%d\n",i);
    	}
    	return 0;
    }
    

    C++ :

    #include <bits/stdc++.h>
    using namespace std;
    
    int main(){
    	for(int i = 100;i >= 1;i--){
    		cout<<i<<endl;
    	}
    }
    

    Java :

    public class Main {
    	public static void main(String[] args) {
    		for(int i=100;i>=1;i--) {
    				System.out.println(i);
    		}
    	}
    }
    
    

    Python :

    i = 100
    while i >= 1:
        print(i)
        i -= 1
    
    
    • 1

    Information

    ID
    10378
    Time
    1000ms
    Memory
    16MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By