This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
#include <stdio.h> | |
int print_up(int input) | |
{ | |
SetConsoleOutputCP(CP_UTF8); | |
int rev=0; | |
while(input) { | |
rev=rev*10+input%10; | |
input=input/10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
#include <stdio.h> | |
int print_up(int input) | |
{ | |
SetConsoleOutputCP(CP_UTF8); | |
int rev=0; | |
while(input) { | |
rev=rev*10+input%10; | |
input=input/10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
NATO (North Atlantic Treaty Organization)'s Logo using turtle | |
author: Manthan Patil, 26, september 2023 | |
*/ | |
#include "simplecpp" | |
#include <math.h> | |
void backward(int n) { | |
left(180); |