What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-02-07 04:40:16
factorial c++ without using function
#include<bits/stdc++.h> #include<stdio.h> using namespace std; int fact(int i){ if (i <= 1) return 1; else return i*fact(i-1); } int main(){ ios::sync_with_stdio(0); cin.tie(0); int N; cin >> N; cout << fact... Add solution -
C++ 2022-02-06 09:40:26
young physicist codeforces
#include <bits/stdc++.h>using namespace std;#define SPEED ios::sync_with_stdio(false); cin.tie(0); cout.tie(0)#define ll long long#define fi first#define se second#define mp make_pair#define pb push_back#define eb emplace_backll gcd(ll a,ll b){ i... Add solution -
-
C++ 2022-02-02 23:16:49
cpp nan value
What is NaN ? NaN, acronym for “Not a Number” is an exception which usually occurs in the caseswhen an expression results in a number that can’t be represented. For example square root of negative numbers. // C++ code to demonstrat... Add solution -
C++ 2022-02-02 21:51:57
pointer in cpp details
Every object in C++ has access to its own address through an important pointer called this pointer. The this pointer is an implicit parameter to all member functions. Therefore, inside a member function, this may be used to refer to the invoking object... Add solution