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> | |
| main() | |
| { | |
| int a = 1, b = 2; | |
| /* Storing result of addition in variable a */ | |
| a = a + b; | |
| printf("Addtion of two numbers= %d\n", a); |
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> | |
| main() | |
| { | |
| int a, b, c; | |
| printf("Enter two numbers to add\n"); | |
| scanf("%d %d",&a,&b); | |
| c = a + b; | |
| printf("Sum Of Two Numbers = %d\n",c); |
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> | |
| main() | |
| { | |
| char string[] = "HELLO WORLD"; | |
| printf("%s\n", string); | |
| return 0; | |
| } |
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
| //C HELLO WORLD | |
| #include <stdio.h> | |
| main() | |
| { | |
| printf("HELLO WORLD"); | |
| return 0; | |
| } |
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
| /* PROGRAM TO PRINT NUMBERS OF 1 TO N WITHOUT USING ANY LOOPS */ | |
| #include<stdio.h> | |
| void Print_Numbers(int,int); //Declaring the Function Definition | |
| main() | |
| { | |
| int NUM; | |
| printf("\n *** Prime Numbers Program in C With Out Using any loops ***"); | |
| printf("\n Enter Number of Primes Numbers Required: "); |
NewerOlder