Skip to content

Instantly share code, notes, and snippets.

View SametSahin10's full-sized avatar
🏠
Working from home

SametSahin10

🏠
Working from home
View GitHub Profile
while True:
print("Options:")
print("Enter 'add' to add two numbers")
print("Enter 'subtract' to subtract two numbers")
print("Enter 'multiply' to multiply two numbers")
print("Enter 'divide' to divide two numbers")
print("Enter 'quit' to end the program")
user_input = input(": ")
#include <stdio.h>
#include <stdlib.h>
int main() {
int n;
printf("Enter the number of x and y values: \n");
scanf("%d", &n);
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
char name[50];
int numberOfElementsOfArray;
@SametSahin10
SametSahin10 / printNumbers.c
Created March 13, 2018 12:59
C program to print all the numbers in a char array.
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
int main() {
char sentence[100];
int numberOfNumbers = 0;