Posts

c language run 7 9 200

  #include <stdio.h> #include <math.h> int main () { printf ( "HELLO HWC \n " ); int x ; x = 7 ; printf ( " %d " , x ); x = 9 ; printf ( " \n " ); printf ( " %d " , x ); x = 200 ; printf ( " \n %d " , x ); return 0 ; }

INTEGRATION 0 3 C LANGUAGE

  #include <stdio.h> #include <math.h> int main () {   float x , y ;   float rect_wight = 0.0001 ;   float area ;   int upper_limit , lower_limit ; printf ( "Enter upper Limit and Lower Limit \n " ); scanf ( " %d %d " ,& lower_limit ,& upper_limit ); for ( x = lower_limit ; x <= upper_limit ; x = x + rect_wight ){     y = pow ( x , 2 )+ 1 ;     area = area + y * rect_wight ;     printf ( "x: %f y: %f \n " , x , y , area );     } printf ( "Area under this curve is: %f \n " , area );     return 0 ; }

C LANGUGE SPACE

  #include <stdio.h> int main () {   printf ( "nn \n\n nn \n " );     printf ( "nn/n/nnn/n " );     return 0 ; }

C LANGUAGE NAME

  #include <stdio.h> int main () {     char fname [ 20 ], lname [ 20 ];     printf ( "Enter your name : " );     scanf ( " %s " , fname );     printf ( "Enter your name : " );     scanf ( " %s " , lname );     printf ( "your full name is %s %s " , fname , lname );   return 0 ; }

c language

  #include <studio.h> int main () {     char ch ;     print ( "enter character : " );     scanf ( " %c " , & ch ); else if (ch >= 'a' && ch <= 'z' ) {     printf ( "lower case \n " ) } else {     print ( "not english latter \n " ); } return 0 ; }

c++

#include "bits/stdc++.h" using namespace std; #define int long long  const int N = 1e5+2, MOD = 1e9+7; // ax+by = gcd(a,b) // ax+0=gcd(a,b) // gcd(d,0)=d // y= 0 struct triplt {     int x,y,gcd; }; tripet extendedEuclid(int a, int b) {     if (b==0)     {         triplet ans;         ans.x=1;         ans.gcd=a;         ans.y=0         return ans;     }     triplet smallAns = extendedEuclid(b,a%b);     triplet ans;     ans.x = smallAns.y;     ans.gcd = smallAns.gcd;     ans.y = smallAns.x - (a/b)*smallAns.y;       return ans; } int multicativeModuloInverse(int a, int m) {     triplet temp = extendedEuclid(a,m);     return tem.x; } signed main() {     int a,m;     cin >> a >> m;     cout<< multiplicativeModuloInvers...