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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="styles.css"> | |
<title>Animal Trading Cards</title> | |
</head> | |
<body> | |
<div class="Cards"> | |
<!-- your favorite animal's name goes here --> |
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
''' | |
code forthe patern bellow : | |
1 | |
12 | |
123 | |
1234 | |
12345 | |
''' | |
n = input("Enter the num : ") |
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<stdio.h> | |
#include<cs50.h> | |
#include<string.h> | |
int main(int argc, string argv[]) | |
{ | |
if(argc!=4){ | |
return 1; | |
} |
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<stdio.h> | |
int main(void){ | |
int n=15,i,f1=0,f2=1, nextItem=0; // initializing the variables | |
for(i=0;i<n;i++){ | |
printf("%d ", f1); // printing variables | |
nextItem= f1+f2; // fibo algo | |
f1=f2; // exchanging the values | |
f2= nextItem; |
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<stdio.h> | |
int main(void){ | |
int n ,newNum, num4,num3,num2,num1; | |
printf("Enbter any Four digit number you wanna reverse : "); | |
scanf("%d",&n); // taking number from users | |
// finding the each digits of thr number. | |
num4 = n/1000; | |
num3 = (n%1000)/100; | |
num2 = (n%100)/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<stdio.h> | |
int main(void){ | |
int i, nums[50], n; | |
printf("Enter the number of the array, array size max is 50 : "); | |
scanf("%d",&n); | |
// addding numbers to the array | |
for(i=0;i<n;i++){ | |
scanf("%d",&nums[i]); | |
} |
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
/****************************************************************************** | |
Online C Compiler. | |
Code, Compile, Run and Debug C program online. | |
Write your code in this editor and press "Run" button to compile and execute it. | |
***************************SWAP WITHOUT THIRD VARIABLE********************************/ | |
#include <stdio.h> |
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
n=4 | |
m=1 | |
for i in range(n): | |
for j in range(n): | |
print("*", end='') | |
print('*') | |
n=n-1 | |
print('*') |
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
import email.utils as eu | |
num = int(raw_input("")) | |
lst=[] | |
for i in range(num): | |
f = raw_input("") | |
li = eu.parseaddr(f) | |
unm = li[1].split("@")[0] | |
dom = li[1].split("@")[1].split(".")[0] | |
ext = li[1].split("@")[1].split(".")[1] |
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
// LIST RANKING | |
void main(){ | |
var superHeroes = ['Hulk','Batman',"spiderman","flash"]; | |
superHeroes.forEach((hero){ | |
print("Position : ${superHeroes.indexOf(hero)+1} Next super Hero is $hero "); | |
}); | |
} |
OlderNewer