What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-10 06:57:02
System.out.printf("%"+(n)+"s \n")
public class Staircase { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); String str = "#"; for (int i = 0; i < n; i++) { System.out.printf("%" + (n) + "s \n",... Add solution -
Python 2021-09-10 06:54:01
online c code to python code conversion
#include<iostream> // Defining MAX size to 10 #define MAX 10 using namespace std; typedef struct Edge { int source; int destination; int weight; }Edge; void bellman_ford_algo(int nodevertex,Edge edge[],int source_graph,int nodeedge) { int... Add solution -
Other 2021-09-10 01:18:02
sum using for loop in c
#include <stdio.h> #include <stdlib.h> #include <math.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char *argv[]) { int x,i,n,num, f = 1; doub... Add solution -
C 2021-09-09 23:22:04
see if two strings are equal in C
#include <stdio.h> #include <string.h> int main(int argc, char const *argv[]) { char string1[] = {"tutorials point"}; char string2[] = {"tutorials point"}; //using function strcmp() to compare the two strings if... Add solution -
C 2021-09-09 22:26:03
multiplication table function
#include <stdio.h> void mult(int n){ int i,x; printf("The multiplication table for the %d is :\n",n) ; for (i=0;i<=20;i++){ x=n*i; printf("%d x %d = %d\n",n,i,n*i); } } int main() { int n,i,x,r; printf("enter th... Add solution -
Other 2021-09-09 12:04:04
program in c that uses cipher shift
#include<stdio.h> int main() { char message[100], ch; int i, key; printf("Enter a message to encrypt: "); gets(message); printf("Enter key: "); scanf("%d", &key); for(i = 0; message[i] != '\0'; ++i... Add solution