This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 --> |
NewerOlder