M

@MEGHADEESHWAR

gagagaga

C
2 years ago
#include <stdio.h> #include<string.h> struct students { int roll; char name[100]; char branch[100]; int batch; };11 int main()

structs

C
2 years ago
#include <stdio.h> #include <string.h> struct Student { char name[50]; int rollNumber; float marks; }; int main() { printf("enter the info of 10 students\n");

structures

C
2 years ago
#include<stdio.h> #include <string.h> struct mys { int a; char b; char c[100]; }; int main() {

equal string palindrome

C
2 years ago
#include <stdio.h> #include <string.h> int areEqual(const char *str1, const char *str2) { return (strcmp(str1, str2) == 0); } int isPalindrome(const char *str) { int left = 0; int right = strlen(str) - 1;

string length with strlen

C
2 years ago
#include <stdio.h> int stringLength( char *str) { int length = 0; while (str[length] != '\0') { length++; } return length;

strcyp strcat

C
2 years ago
#include <stdio.h> #include <string.h> int main() { char str1[50], str2[50], result[100]; printf("Enter the first string: \n"); scanf("%s",str1); printf("Enter the second string:\n ");

array basic

C
2 years ago
#include <stdio.h> int main() { int arr[5]; for( int i=0;i<5;i++) { scanf("%d",&arr[i]); } for( int i=0;i<5;i++)

rec

C
2 years ago
#include<stdio.h> int fact(int n) { if(n==0){ return 1; } else { return n*fact(n-1); }

informaton of 10 students

C
2 years ago
#include <stdio.h> #include<string.h> struct Student { char name[100]; int rollNumber; char native[100]; }; int main()

revers

C
2 years ago
#include <stdio.h> int reverseSentence() { char c; scanf("%c", &c); if (c != '\n') { reverseSentence(); printf("%c", c); } } int main() {

Hdjfjfjfjfjf

C
2 years ago
#include <stdio.h> struct Person { char name[50]; int age; }; int main() { struct Person person;

Strings

C
2 years ago
#include <stdio.h> #include <string.h> struct mystructure{ int mynum; char myletter; char mystring[30]; } ; int main()

hg

C
2 years ago
#include <stdio.h> void cc(char *str1, char *str2) { while (*str1++ = *str2++); } int main() { char str1[50]; char *str2 = "asdfghjk!";

change any array element

C
2 years ago
#include <stdio.h> int main() { int mynumber[]={23,34,45,56,67}; mynumber[4]=33; printf("%d",mynumber[4]); return 0; }

message

C
2 years ago
#include <stdio.h> int main() { printf("please sign out from your my compiler account whenever you finish your work - your classmate\n"); return 0; }

amstrong number

C
2 years ago
#include <stdio.h> #include <math.h> int main() { int n; int revers; int copy; scanf("%d",&n); copy=n; while(copy>0)

sum of digits

C
2 years ago
#include <stdio.h> #include <math.h> int main() { int number; int sum; scanf("%d", &number); while(number>0) {

factorial for loop

C
2 years ago
#include <stdio.h> int main() { int i,n,fact=1; scanf("%d",&n); for(i=1;i<=n;i++) {

while loop sum of n numbers

C
2 years ago
#include <stdio.h> int main() { int i=1,n,sum=0; scanf("%d",&n); while(i<=n) { sum = sum + i; i++;

sum of first n natural numbers

C
2 years ago
#include <stdio.h> int main() { int i,n,sum=0; scanf("%d",&n); for(i=1;i<=n;i++) { sum= sum + i; } printf("sum=%d",sum);