D. Fixed Password – Codeforces Problem Solution in C

Disclaimer: Make sure you tried enough before checking the solution

Problem: https://codeforces.com/group/MWSDmqGsZm/contest/219432/problem/D

#include<stdio.h>
int main(){
    int a;

    while(1){
        scanf("%d",&a);
        if(a==1999){
            printf("Correct\n");
            break;
        }
        else{
            printf("Wrong\n");
        }
    }
    return 0;
}


Assiut University Training – Newcomers solution

Leave a Comment