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() | |
{ | |
float phy,chem,math,a; | |
char c,g; | |
printf("\nEnter choice \n\t1.If_Else\n\t2.Switch_case\n\t=>"); | |
scanf("%c",&c); | |
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() | |
{ | |
int a; | |
printf("\nEnter year=>"); | |
scanf("%d",&a); | |
(a%100==0)?(a%400==0?printf("\nLeap\n"):printf("\nNot Leap\n")):(a%4==0?printf("\nLeap\n"):printf("\nNot Leap\n")); | |
} |
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"multiIO.h" | |
int main() | |
{ | |
i2no(); | |
printf("\nSo two No. are=>%f %f",a[0],b[1]); | |
return 0; | |
} |
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
float product(float x, float y) | |
{ | |
static float product; | |
product=x*y; | |
printf("\nProduct=%f",product); | |
} | |
float root(float x, float y, float z) | |
{ | |
static float D; |
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() | |
{ | |
int x, y; | |
printf("Enter 5 digit No. =>"); | |
scanf("%d", &x); | |
printf("Reverse of the No. %d is =>", x); |
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 <stdlib.h> | |
#include <ctype.h> | |
#include <string.h> | |
typedef struct student | |
{ | |
int roll; | |
float marks; | |
char Name[25]; | |
char Gender; |
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() | |
{ | |
int A[10], a, b, t1=0, t2=0, count=0; | |
printf("Enter elements of array =>"); | |
for(int i=0; i<10; 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
#include<stdio.h> | |
#include<stdlib.h> | |
#include<unistd.h> | |
struct Poly | |
{ | |
int Coeff; | |
int Pow; | |
struct Poly *next; | |
} *first, *second, *Sum; |
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<stdlib.h> | |
struct Node | |
{ | |
int A; | |
struct Node *next; | |
} *first; | |
typedef struct Node Node; |
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<stdlib.h> | |
struct Node | |
{ | |
int A; | |
struct Node *next; | |
struct Node *prev; | |
} *first, *last; |
OlderNewer