Posts

Payment form

Payment form Payment form Contact information Required fields are followed by * Name: * Gender Male Female Address: Email: * Pincode: Payment Information Card Type: * Select card type Visa Rupays Card number Expiration date: CVV This is the payment form

First website

Image
Apni Kaksha | Home Apni Kaksha Home College Reviews Courses Study materials Login/sign up Courses College Reviews Study materials Our Founder Aman Dhattarwal YouTube  |  Instagram  |  He is one of the most influencing guy he is an solopreneur He is one of the top educator in unacademy He help students to get good cources for free and grow for free FAQ Contact Us Terms of Use Privacy policy Refund Policy © 2020 | Apni Kakha

Web development

Guess the number

 #guessing our numbers by user print("Guess the number\n""You have only 7 guesses") n=1 while(True):     i = int(input())     if i==18:         print("You have guessed correct number")         break     else:         if n<7:             print("Remaining chances are", 7 - n)             n = n + 1             if i<18:                 print("Enter little bit big number")             elif i>18:                 print("Enter lesser number")         else:             print("you have lost your chances")             break

Faulty calculator

a=int(input("Enter first number")) c=input("Enter operator") b=int(input("Enter second number")) if a==45 and b==3 and  c=='*':     print("Your answer is", 555) elif a==56 and b==9 and c=='+':     print("Your answer is", 77) elif a==56 and b==6 and c=='/':     print("Your answer is", 4) elif c=='+':     print("Your answer is", a+b) elif c=='-':     print("Your answer is", a-b) elif c=='*':     print("Your answer is",a*b) else :     print("Your answer is ",a/b)

Loops in C program

Do while loop in c  program //do while loop //  Do while loops are used when we have to execute block of loop // at least once for sure i.e. even the condition is false then also // do while loop get executed for once. // In do while loop, first of all the statements of do block get // executed and then the condition is checked and if the condition is true // then it repeat the same step i.e. control goes to top of the loop // and again executes it and this process occur till the condition becomes false. #include <stdio.h> int main() {     int num, index = 0;     printf("Enter a number\n");     scanf("%d", &num);     do     {         // In this case we take integer input from user as num         //Then the other integer index perform the program         // Mainly it print the numbers in the order         //untill the index is less than num...

If Else control statements and switch

If else control statements // if else control statements #include <stdio.h> int main() {     int age;     printf("Enter your age\n");     //  we have taken the input age     scanf("%d", &age);     printf("You have entered %d as your age\n", age);     if (age >= 18)     {         // if statement- In if statement condition is checked,         // and if it is true then 'if'statement is executed         // otherwise it is skipped and rest of the code is exected.         printf("You can vote!");     }     else if (age >= 10)     {         // if-else statement: In if-else statement first of all 'If'         // // condition is checked and if the condition is true then 'If'         // statement gets executed otherwise 'else'statements get...