C++ Program for Printing Even Numbers till N Get link Facebook X Pinterest Email Other Apps - July 22, 2021 #include<iostream>using namespace std;int main(){ int i,n; cout<<"Printing Even numbers till N :"; cin>>n; i=1; while(i<=n) { if(i%2==0) { cout<<i<<", "; } i++; } return 0;} Get link Facebook X Pinterest Email Other Apps Comments
Python program to check if it is a Duck Number or not - September 17, 2021 t=r=x=fag=0 n=int(input("ENTER N : ")) while n!=0: t=n%10 if t==0: fag+=1 n=n//10 if fag>0: print("It's a Duck Number") else: print("It's not a Duck Number") Read more
Comments
Post a Comment