What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-02 21:05:06
calendar library in python
please check out my video also - https://www.youtube.com/watch?v=ZA3XAZ-dB5M&t=9s please subscribe my channel - https://bit.ly/2Me2CfB # importing the calendar module import calendar #taking input of year from the user y = int(input("ENTER THE ... Add solution -
Python 2021-11-06 06:30:16
create file and write numbers to file in python
##Write a Python program to create a file of numbers ##by taking input from the user and ##then display the content of the file. ##You can take input of non-zero numbers, ##with an appropriate prompt, from the user until the user enters a zero #to cr... Add solution -
Other 2021-10-27 04:30:11
split one file into multiple files
##Write a Python program to create a file of numbers by taking input from the user. Split this file into two files where one file contains odd numbers and the other file contains even numbers from the file. You can take input of non-zero numbers, with an ... Add solution -
C++ 2021-10-25 12:11:17
how to find all permutations of n distinct integers in c++
#include <bits/stdc++.h> using namespace std; //Display elements of the array void display(vector<int> a, int n){ for(int i=0;i<n;i++) cout << a[i] << " "; cout << endl; } int main() { //Obtaining ... Add solution -
C++ 2021-10-19 22:22:08
cin does not wait for input
/* cin stops taking input on whitespace encounter * so if you pass "Prakhar Patel" into cin>>name; * only "Prakhar" will be stored into name. * "Patel" will stay in stream and will come into next cin statement. */ getl... Add solution -
Other 2021-09-24 15:45:04
what are format specifiers
it is used during taking input and out put Int ("%d"): Long ("%ld"): Char ("%c"): Float ("%f"): Double ("%lf") example: char ch = 'd'; double d = 234.432; printf("%c %lf", ch, d); char ch;... Add solution -
C 2021-09-04 21:07:03
adding digits of a number in c
//program to find the sum of digits: #include<stdio.h> int main() { int num,sum=0,r,temp; printf("Enter the number:\n "); //taking input from the user scanf("%d",&num); temp=num; //assigning num to temp... Add solution
Best helpers
Ranking is empty