@muneeswaran
Array example 2

#include <stdio.h> void main() { int a[10],n,i; printf("\nEnter the Limit : "); scanf("%d",&n); printf("%d",n); printf("\nEnter the Elements : "); for(i=0;i<n;i++) { scanf("%d",&a[i]);
Array
updated
C
·

#include <stdio.h> int main() { int mnp[3]= { 5,7,8}; printf("Enter the three values\n"); scanf ("%d %d %d ",&mnp[0],&mnp[1],&mnp[2]); printf("\n %d %d %d",mnp[0],mnp[1],mnp[2]); return 0; }
#include <stdio.h> void main() { printf("\nFind a Palindrome Number :"); int n,t,r,s=0; printf("\nEnter a Number : "); scanf("%d",&n); printf("%d",n); (t=n); while(n!=0) {
#include <stdio.h> void main() { printf("\n ★Find a Armstrong Number★ "); int m,t,r,s=0; printf("\nEnter a Number : "); scanf("%d",&m); printf("%d",m); (t=m); while(m!=0) {
#include <stdio.h> int main() { printf("\n find a big number among three values:"); printf("\n **********************************") ; int a, b,c; printf("\n Enter the values a, b and c:"); scanf("%d %d %d",&a,&b,&c); printf("%d %d and %d",a,b,c); if(a>b&&a>c) {
Happy birthday

#include <stdio.h> void main() { char a; printf("\n ★«« Enter The Name»»★") ; scanf("%d",a); printf("\n **************"); printf("\n Name"); printf ("\n wish🎂🎂🎂 you \n Many more happy returns of the day 🥳🥳🥳"); printf("\n 🎂🍫🍫🍫 stay safe\n and stay happy😊"); printf ("\n★ God bless you nanba★") ;
#include <stdio.h> int main() { printf ("\n largest number program:"); int a,b; printf("\n Enter the two numbers:"); scanf("%d%d",&a,&b); printf("%d\t%d",a,b); if(a>b) { printf("\n a is greater than b");
#include <stdio.h> int main() { printf("\n while loop example:"); int a=1; while(a<11) { printf("\n%d",a); a++; } printf("\n Thank you ");
1 to 10

#include <stdio.h> int main() { printf("\n welcome"); int a; for(a=1;a<11;a++) printf("\n %d",a); printf("/n Thank you"); return 0; }
do while

#include <stdio.h> int main() { printf("\n do while program: "); int i=65 ; do { printf("\n %d",i); i++; } while(i<=72);
While Loop

#include <stdio.h> void main() { int i=1; while(i<5) { printf("\n %d",i); i++; } printf("\n Thank you"); }
#include <stdio.h> void main() { int a,b; printf("\n Enter the two numbers:"); scanf("%d%d",&a,&b); printf("%d\t%d",a,b); if(a>b) { printf("\n a is greater than b"); }
Sum of digits

#include <stdio.h> void main() { int i,sum=0,n; printf("\n Enter the value of N : "); scanf("%d",&n); printf("%d",n); for(i=1;i<=n;i++) { sum=sum+i; i=i++;
#include <stdio.h> void main() { printf("\nPositive Double Digit Numbers ;\n"); int i; for(i=10;i<100;i++) { printf("%d \t",i); } }
#include <stdio.h> int main() { int a,b; for(a=1,b=5;a+b<15;a++,b++) { printf("\n %d %d",a,b); } return 0; }
For loop example

#include <stdio.h> int main() { int x; for(x=17;x<25;x++) { printf("%d \n",x); } return 0; }
Switch case

#include <stdio.h> int main() { int a; printf ("\n ★Switch Case program★") ; printf("\n enter the number:"); scanf("%d",&a); printf("%d",a); switch(a) { case 0:
Nested if else

#include <stdio.h> void main() { int a; printf("\n Enter the number:"); scanf ("%d", &a); printf("%d",a); if(a<10) { if(a>=5) {
Nested if-else

#include <stdio.h> void main () { printf("Nested if-else Program :\n"); int n; printf("Enter a Number : "); scanf("%d",&n); printf("%d\n",n); if(n<100) { if(n>50)
Nested if

#include <stdio.h> void main() { int a; printf("Enter the number"); scanf ("%d", &a); if(a<10) { if(a>=5) { printf("The number is greater than or equal to 5");