Cod sursa(job #2029229)

Utilizator Andrei.GheorgheAndrei Gheorghe Andrei.Gheorghe Data 29 septembrie 2017 18:36:40
Problema Factorial Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.35 kb
#include<iostream>
#include<math.h>
#include<algorithm>
using namespace std;
int main()
{
    int n,p,sum=1,k=1,i=5;
    cin>>p;
    while(true)
    {
        if(p==0)
        {
            cout<<k;
            break;
        }
         if(i/5==p)
         {
             cout<<i;
             break;
         }else{i=i+5;}
    }
}